summaryrefslogtreecommitdiff
path: root/internal/tui/flamegraph/model_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-27 08:34:44 +0300
committerPaul Buetow <paul@buetow.org>2026-05-27 08:34:44 +0300
commit6f574882eed60fe48fc5bbeeea97f4efb2521427 (patch)
tree65d1aedff185894ad56554b56402d7fe1002261f /internal/tui/flamegraph/model_test.go
parent67e08ef669ca88f6df799a52924511b626580b11 (diff)
cp: remove dead flamegraph helpers and dead style param plumbing
Diffstat (limited to 'internal/tui/flamegraph/model_test.go')
-rw-r--r--internal/tui/flamegraph/model_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/tui/flamegraph/model_test.go b/internal/tui/flamegraph/model_test.go
index 5445896..3efe589 100644
--- a/internal/tui/flamegraph/model_test.go
+++ b/internal/tui/flamegraph/model_test.go
@@ -1278,7 +1278,7 @@ func TestRebuildKeepsSelectionOnVisibleRowsWhenTruncated(t *testing.T) {
if len(m.frames) == 0 {
t.Fatalf("expected rebuilt frames")
}
- rowOffset := m.visibleRowOffset()
+ rowOffset := visibleRowOffset(m.frames, m.height, m.searchQuery, m.filterVisible)
if m.frames[m.selectedIdx].Row < rowOffset {
t.Fatalf("expected selected frame row %d to be visible (offset=%d)", m.frames[m.selectedIdx].Row, rowOffset)
}