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

Function TestDashboard_ActionsMenuRemove

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

Source from the content-addressed store, hash-verified

126}
127
128func TestDashboard_ActionsMenuRemove(t *testing.T) {
129 d := testDashboard(1)
130 d.width = 80
131 d.height = 40
132 d.updateViewportSize()
133 d.rebuildViewportContent()
134
135 _, cmd := updateDashboard(d, ActionsMenuSelectMsg{app: d.apps[0], action: ActionsMenuRemove})
136 require.NotNil(t, cmd)
137
138 msg := cmd()
139 navMsg, ok := msg.(NavigateToRemoveMsg)
140 require.True(t, ok, "expected NavigateToRemoveMsg, got %T", msg)
141 assert.Equal(t, d.apps[0], navMsg.App)
142}
143
144func TestDashboard_OldStartStopKeyRemoved(t *testing.T) {
145 d := testDashboard(1)

Callers

nothing calls this directly

Calls 5

testDashboardFunction · 0.85
updateDashboardFunction · 0.85
EqualMethod · 0.80
updateViewportSizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…