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

Function TestTable

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

Source from the content-addressed store, hash-verified

14}
15
16func TestTable(t *testing.T) {
17 b := NewBody()
18 NewTable(b).SetSlice(&[]language{{"Go", 10}, {"Python", 5}})
19 b.AssertRender(t, "table/basic")
20}
21
22func TestTableReadOnly(t *testing.T) {
23 b := NewBody()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected