diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-25 08:43:15 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-25 08:43:15 +0200 |
| commit | d423225771a10ebae87d22c69fe88e5b65a3d378 (patch) | |
| tree | 9f701073be1e53ff06d89eb7c55f5b58b8aba1d3 /internal/tui/dashboard/tabs_test.go | |
| parent | 1a6e71ac31353167ec4c614d45e8e06de411a8f9 (diff) | |
Integrate Stream tab into dashboard and TUI
Diffstat (limited to 'internal/tui/dashboard/tabs_test.go')
| -rw-r--r-- | internal/tui/dashboard/tabs_test.go | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/internal/tui/dashboard/tabs_test.go b/internal/tui/dashboard/tabs_test.go index 9d3db2d..d40cc68 100644 --- a/internal/tui/dashboard/tabs_test.go +++ b/internal/tui/dashboard/tabs_test.go @@ -6,17 +6,20 @@ import ( ) func TestTabNavigationWraps(t *testing.T) { - if got := nextTab(TabGaps); got != TabOverview { - t.Fatalf("expected wrap to overview, got %v", got) + if got := nextTab(TabGaps); got != TabStream { + t.Fatalf("expected next after gaps to be stream, got %v", got) } - if got := prevTab(TabOverview); got != TabGaps { - t.Fatalf("expected wrap to gaps, got %v", got) + if got := nextTab(TabStream); got != TabOverview { + t.Fatalf("expected wrap to overview from stream, got %v", got) + } + if got := prevTab(TabOverview); got != TabStream { + t.Fatalf("expected wrap to stream, got %v", got) } } func TestRenderTabBarContainsLabels(t *testing.T) { out := renderTabBar(TabOverview, 80) - for _, label := range []string{"Overview", "Syscalls", "Files", "Processes", "Latency", "Gaps"} { + for _, label := range []string{"Overview", "Syscalls", "Files", "Processes", "Latency", "Gaps", "Stream"} { if !strings.Contains(out, label) { t.Fatalf("expected tab label %q in tab bar", label) } |
