mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Support generating bindings by name
This commit is contained in:
@@ -25,6 +25,7 @@ func TestParseFunction(t *testing.T) {
|
||||
"main": {
|
||||
"GreetService": {
|
||||
{
|
||||
Package: "main",
|
||||
Name: "Greet",
|
||||
DocComment: "Greet someone",
|
||||
Inputs: []*Parameter{
|
||||
@@ -59,6 +60,7 @@ func TestParseFunction(t *testing.T) {
|
||||
"main": {
|
||||
"GreetService": {
|
||||
{
|
||||
Package: "main",
|
||||
Name: "Greet",
|
||||
DocComment: "Greet does XYZ",
|
||||
Inputs: []*Parameter{
|
||||
@@ -82,6 +84,7 @@ func TestParseFunction(t *testing.T) {
|
||||
ID: 1411160069,
|
||||
},
|
||||
{
|
||||
Package: "main",
|
||||
Name: "NewPerson",
|
||||
DocComment: "NewPerson creates a new person",
|
||||
Inputs: []*Parameter{
|
||||
@@ -111,7 +114,8 @@ func TestParseFunction(t *testing.T) {
|
||||
"github.com/wailsapp/wails/v3/internal/parser/testdata/variable_single_from_other_function/services": {
|
||||
"OtherService": {
|
||||
{
|
||||
Name: "Yay",
|
||||
Package: "github.com/wailsapp/wails/v3/internal/parser/testdata/variable_single_from_other_function/services",
|
||||
Name: "Yay",
|
||||
Outputs: []*Parameter{
|
||||
{
|
||||
Type: &ParameterType{
|
||||
|
||||
Reference in New Issue
Block a user