MCPcopy
hub / github.com/basecamp/once / TestDashboard_ActionsMenuCloses

Function TestDashboard_ActionsMenuCloses

internal/ui/dashboard_test.go:103–115  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

101}
102
103func TestDashboard_ActionsMenuCloses(t *testing.T) {
104 d := testDashboard(1)
105 d.width = 80
106 d.height = 40
107 d.updateViewportSize()
108 d.rebuildViewportContent()
109
110 d, _ = updateDashboard(d, keyPressMsg("a"))
111 assert.NotNil(t, d.overlay)
112
113 d, _ = updateDashboard(d, ActionsMenuCloseMsg{})
114 assert.Nil(t, d.overlay)
115}
116
117func TestDashboard_ActionsMenuStartStop(t *testing.T) {
118 d := testDashboard(1)

Callers

nothing calls this directly

Calls 5

testDashboardFunction · 0.85
updateDashboardFunction · 0.85
keyPressMsgFunction · 0.85
updateViewportSizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…