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

Function TestDashboardPanelSelectedHasIndicator

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

Source from the content-addressed store, hash-verified

48}
49
50func TestDashboardPanelSelectedHasIndicator(t *testing.T) {
51 panel := testPanel(true)
52 view := panel.View(true, false, true, 80, DashboardScales{})
53
54 // Selected panels have the indicator character
55 assert.Contains(t, view, "▐")
56 assert.Contains(t, view, "▗")
57 assert.Contains(t, view, "▝")
58}
59
60func TestDashboardPanelNotSelectedNoIndicator(t *testing.T) {
61 panel := testPanel(true)

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…