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

Function TestDashboardPanelViewRunningApp

internal/ui/dashboard_panel_test.go:14–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func TestDashboardPanelViewRunningApp(t *testing.T) {
15 panel := testPanel(true)
16 view := panel.View(false, false, true, 120, DashboardScales{})
17 stripped := ansi.Strip(view)
18
19 assert.Contains(t, stripped, "app.example.com")
20 assert.Contains(t, stripped, "running")
21}
22
23func TestDashboardPanelViewStoppedApp(t *testing.T) {
24 panel := testPanel(false)

Callers

nothing calls this directly

Calls 2

testPanelFunction · 0.85
ViewMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…