diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-05 23:06:46 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-05 23:06:46 +0200 |
| commit | 9744b3ce9e7b33b8843d1c260c3dfa3431391f43 (patch) | |
| tree | b1ac62e6580c289936792e40ce2097fa8c3fff94 /internal | |
| parent | 58267b80526c0faba0ff528fe768e92dd21e0b6f (diff) | |
task 366: validate flamegraph tab integration checkpoint
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/tui/dashboard/model_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/tui/dashboard/model_test.go b/internal/tui/dashboard/model_test.go index be31297..46f4944 100644 --- a/internal/tui/dashboard/model_test.go +++ b/internal/tui/dashboard/model_test.go @@ -397,6 +397,18 @@ func TestViewRendersTabBarAndHelp(t *testing.T) { } } +func TestFlameTabRendersWaitingForDataPlaceholder(t *testing.T) { + m := NewModelWithConfig(nil, nil, 1000, common.DefaultKeyMap()) + m.activeTab = TabFlame + m.width = 120 + m.height = 30 + + out := m.View().Content + if !strings.Contains(out, "Flame: waiting for data...") { + t.Fatalf("expected flame waiting placeholder, got %q", out) + } +} + func TestRenderActiveTabUsesDirectoryFilesViewWhenGrouped(t *testing.T) { snap := statsengine.NewSnapshot( nil, nil, nil, nil, |
