MCPcopy Index your code
hub / github.com/go-python/gopy / TestBindFuncs

Function TestBindFuncs

main_test.go:290–316  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

288}
289
290func TestBindFuncs(t *testing.T) {
291 // t.Parallel()
292 path := "_examples/funcs"
293 testPkg(t, pkg{
294 path: path,
295 lang: features[path],
296 cmd: "build",
297 extras: nil,
298 want: []byte(`got return value: true
299got nil
300ofs FieldI: 42 FieldS: str field
301fs.CallBack(22, cbfun)...
302in python cbfun: FieldI: 42 FieldS: str field ival: 22 sval: str field
303fs.CallBackIf(22, cbfunif)...
304in python cbfunif: FieldI: 42 FieldS: str field ival: 22 ifval: str field
305fs.CallBackRval(22, cbfunrval)...
306in python cbfunrval: FieldI: 42 FieldS: str field ival: 22 ifval: str field
307fs.CallBack(32, cls.ClassFun)...
308in python class fun: FieldI: 42 FieldS: str field ival: 32 sval: str field
309cls.CallSelf...
310in python class fun: FieldI: 42 FieldS: str field ival: 77 sval: str field
311fs.ObjArg with nil
312fs.ObjArg with fs
313OK
314`),
315 })
316}
317
318func TestBindSimple(t *testing.T) {
319 // t.Parallel()

Callers

nothing calls this directly

Calls 1

testPkgFunction · 0.85

Tested by

no test coverage detected