github.com/unionj-cloud/go-doudou@v1.3.8-0.20221011095552-0088008e5b31/cmd/internal/svc/codegen/httpiclient_test.go (about)

     1  package codegen
     2  
     3  import (
     4  	"github.com/unionj-cloud/go-doudou/cmd/internal/astutils"
     5  	"path/filepath"
     6  	"testing"
     7  )
     8  
     9  func TestGenGoIClient(t *testing.T) {
    10  	svcfile := filepath.Join(testDir, "svc.go")
    11  	ic := astutils.BuildInterfaceCollector(svcfile, astutils.ExprString)
    12  
    13  	type args struct {
    14  		dir string
    15  		ic  astutils.InterfaceCollector
    16  	}
    17  	tests := []struct {
    18  		name string
    19  		args args
    20  	}{
    21  		{
    22  			name: "",
    23  			args: args{
    24  				dir: testDir,
    25  				ic:  ic,
    26  			},
    27  		},
    28  	}
    29  	for _, tt := range tests {
    30  		t.Run(tt.name, func(t *testing.T) {
    31  			GenGoIClient(tt.args.dir, tt.args.ic)
    32  		})
    33  	}
    34  }