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

Function TestButtonIcon

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

Source from the content-addressed store, hash-verified

24}
25
26func TestButtonIcon(t *testing.T) {
27 b := NewBody()
28 NewButton(b).SetIcon(icons.Download)
29 b.AssertRender(t, "button/icon")
30}
31
32func TestButtonTextIcon(t *testing.T) {
33 b := NewBody()

Callers

nothing calls this directly

Calls 4

AssertRenderMethod · 0.95
NewBodyFunction · 0.85
NewButtonFunction · 0.85
SetIconMethod · 0.65

Tested by

no test coverage detected