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

Function TestFormStyle

core/form_test.go:68–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestFormStyle(t *testing.T) {
69 b := NewBody()
70 s := styles.NewStyle()
71 s.SetState(true, states.Active)
72 s.SetAbilities(true, abilities.Checkable)
73 NewForm(b).SetStruct(s)
74 b.AssertRender(t, "form/style")
75}

Callers

nothing calls this directly

Calls 7

SetStateMethod · 0.95
SetAbilitiesMethod · 0.95
AssertRenderMethod · 0.95
NewStyleFunction · 0.92
NewBodyFunction · 0.85
NewFormFunction · 0.85
SetStructMethod · 0.45

Tested by

no test coverage detected