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

Function TestDashboard_ActionsMenuOpensOnA

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

Source from the content-addressed store, hash-verified

90}
91
92func TestDashboard_ActionsMenuOpensOnA(t *testing.T) {
93 d := testDashboard(1)
94 d.width = 80
95 d.height = 40
96 d.updateViewportSize()
97 d.rebuildViewportContent()
98
99 d, _ = updateDashboard(d, keyPressMsg("a"))
100 assert.NotNil(t, d.overlay)
101}
102
103func TestDashboard_ActionsMenuCloses(t *testing.T) {
104 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…