diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-06 15:21:01 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-06 15:21:01 +0200 |
| commit | 4ff17c30120d657b966f8a55188ba167dc875e64 (patch) | |
| tree | 62737caf6b8e7411c2437dd995d3de5ce6aeca99 /internal/tui/tui_test.go | |
| parent | 1530bf2856bbb32a6e0457596b55c07f3836a0ec (diff) | |
feat(tui): add flamegraph bytes metric toggle
Diffstat (limited to 'internal/tui/tui_test.go')
| -rw-r--r-- | internal/tui/tui_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/tui/tui_test.go b/internal/tui/tui_test.go index 87ad340..cd9e6cd 100644 --- a/internal/tui/tui_test.go +++ b/internal/tui/tui_test.go @@ -505,6 +505,20 @@ func TestFlameOrderKeyDoesNotOpenProbeModal(t *testing.T) { } } +func TestFlameMetricKeyDoesNotOpenProbeModal(t *testing.T) { + m := NewModel(-1, func(context.Context) error { return nil }) + m.screen = ScreenDashboard + m.attaching = false + m.width = 120 + m.height = 30 + + next, _ := m.Update(tea.KeyPressMsg{Code: []rune{'b'}[0], Text: string([]rune{'b'})}) + updated := next.(Model) + if updated.probeModal.Visible() { + t.Fatalf("expected flame metric key to stay in flame tab, not open probes modal") + } +} + func TestSelectPIDKeyReturnsToFreshPickerAndStopsTrace(t *testing.T) { m := NewModel(-1, func(context.Context) error { return nil }) m.screen = ScreenDashboard |
