mirror of
https://github.com/JuLi0n21/goTsClient.git
synced 2026-04-19 16:00:07 +00:00
remove tests
This commit is contained in:
32
example.go
32
example.go
@@ -1,32 +0,0 @@
|
|||||||
package gotsclient
|
|
||||||
|
|
||||||
type Api struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
type ReturnValue struct {
|
|
||||||
Field []string
|
|
||||||
Second int
|
|
||||||
Uhhhh *uint32
|
|
||||||
}
|
|
||||||
|
|
||||||
type ReceiveValue struct {
|
|
||||||
Field []string
|
|
||||||
Second int
|
|
||||||
Uhhhh *uint32
|
|
||||||
}
|
|
||||||
|
|
||||||
func (a Api) EmptyParams() (string, error) {
|
|
||||||
return "", nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (a Api) Structs(value ReceiveValue) (ReturnValue, error) {
|
|
||||||
return ReturnValue{}, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (a Api) ComplexThings(items []string) (map[string]int, error) {
|
|
||||||
return map[string]int{}, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (a Api) ManyParams(b, c, d, e, f, g, h, i, j int) (string, error) {
|
|
||||||
return "", nil
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package gotsclient
|
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
"testing"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TestGenerateClient(t *testing.T) {
|
|
||||||
|
|
||||||
fmt.Println(GenClient(Api{}, "./client.ts"))
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user