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

Function TestKeyedListReadOnly

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

Source from the content-addressed store, hash-verified

25}
26
27func TestKeyedListReadOnly(t *testing.T) {
28 b := NewBody()
29 NewKeyedList(b).SetMap(&map[string]int{"Go": 1, "C++": 3, "Python": 5}).SetReadOnly(true)
30 b.AssertRender(t, "keyed-list/read-only")
31}
32
33func TestKeyedListAny(t *testing.T) {
34 b := NewBody()

Callers

nothing calls this directly

Calls 5

AssertRenderMethod · 0.95
NewBodyFunction · 0.85
NewKeyedListFunction · 0.85
SetReadOnlyMethod · 0.45
SetMapMethod · 0.45

Tested by

no test coverage detected