MCPcopy Create free account
hub / github.com/cogentcore/core / TestCallFuncArgs

Function TestCallFuncArgs

core/funcbutton_test.go:22–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20}
21
22func TestCallFuncArgs(t *testing.T) {
23 b := NewBody()
24 myFunc := func(a int, b string) {}
25 CallFunc(b, myFunc)
26 b.AssertRenderScreen(t, "func-button/args")
27}

Callers

nothing calls this directly

Calls 3

AssertRenderScreenMethod · 0.95
NewBodyFunction · 0.85
CallFuncFunction · 0.85

Tested by

no test coverage detected