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

Function TestCallFunc

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

Source from the content-addressed store, hash-verified

11)
12
13func TestCallFunc(t *testing.T) {
14 called := false
15 myFunc := func() {
16 called = true
17 }
18 CallFunc(nil, myFunc)
19 assert.True(t, called)
20}
21
22func TestCallFuncArgs(t *testing.T) {
23 b := NewBody()

Callers

nothing calls this directly

Calls 1

CallFuncFunction · 0.85

Tested by

no test coverage detected