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

Function TestTableReadOnly

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

Source from the content-addressed store, hash-verified

20}
21
22func TestTableReadOnly(t *testing.T) {
23 b := NewBody()
24 NewTable(b).SetSlice(&[]language{{"Go", 10}, {"Python", 5}}).SetReadOnly(true)
25 b.AssertRender(t, "table/read-only")
26}

Callers

nothing calls this directly

Calls 5

AssertRenderMethod · 0.95
NewBodyFunction · 0.85
NewTableFunction · 0.70
SetReadOnlyMethod · 0.45
SetSliceMethod · 0.45

Tested by

no test coverage detected