MCPcopy Create free account
hub / github.com/cloudwego/dynamicgo / getExampleInt2Float

Function getExampleInt2Float

conv/p2j/conv_test.go:494–501  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

492}
493
494func getExampleInt2Float() *proto.TypeDescriptor {
495 includeDirs := util_test.MustGitPath("testdata/idl/") // includeDirs is used to find the include files.
496 svc, err := proto.NewDescritorFromPath(context.Background(), util_test.MustGitPath(exampleIDLPath), includeDirs)
497 if err != nil {
498 panic(err)
499 }
500 return (*svc).LookupMethodByName("Int2FloatMethod").Output()
501}
502
503func TestInt2String(t *testing.T) {
504 cv := NewBinaryConv(conv.Options{})

Callers 1

TestInt2StringFunction · 0.70

Calls 4

MustGitPathFunction · 0.92
NewDescritorFromPathMethod · 0.80
OutputMethod · 0.80
LookupMethodByNameMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…