summaryrefslogtreecommitdiff
path: root/internal/tui/flamegraph/async_refresh_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tui/flamegraph/async_refresh_test.go')
-rw-r--r--internal/tui/flamegraph/async_refresh_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/tui/flamegraph/async_refresh_test.go b/internal/tui/flamegraph/async_refresh_test.go
index d6027de..73c1889 100644
--- a/internal/tui/flamegraph/async_refresh_test.go
+++ b/internal/tui/flamegraph/async_refresh_test.go
@@ -31,7 +31,7 @@ func TestRefreshFromLiveTrieCmdNilWhenNoTrie(t *testing.T) {
}
func TestRefreshFromLiveTrieCmdProducesSnapshotReady(t *testing.T) {
- trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count")
+ trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count", "count")
ingestTwoEventsForAsync(t, trie)
m := NewModel(trie)
m.width = 120
@@ -65,7 +65,7 @@ func TestRefreshFromLiveTrieCmdProducesSnapshotReady(t *testing.T) {
}
func TestRefreshFromLiveTrieCmdCoalescesInFlight(t *testing.T) {
- trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count")
+ trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count", "count")
ingestTwoEventsForAsync(t, trie)
m := NewModel(trie)
m.width = 80
@@ -80,7 +80,7 @@ func TestRefreshFromLiveTrieCmdCoalescesInFlight(t *testing.T) {
}
func TestRefreshFromLiveTrieCmdSkippedWhileUserDrives(t *testing.T) {
- trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count")
+ trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count", "count")
ingestTwoEventsForAsync(t, trie)
m := NewModel(trie)
m.width = 80
@@ -106,7 +106,7 @@ func TestRefreshFromLiveTrieCmdSkippedWhileUserDrives(t *testing.T) {
}
func TestSnapshotReadyHandlerSnapsToTargetWhileDriving(t *testing.T) {
- trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count")
+ trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count", "count")
ingestTwoEventsForAsync(t, trie)
m := NewModel(trie)
m.width = 120
@@ -144,7 +144,7 @@ func TestSnapshotReadyHandlerSnapsToTargetWhileDriving(t *testing.T) {
}
func TestViewCacheReusesContentWhenStateUnchanged(t *testing.T) {
- trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count")
+ trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count", "count")
ingestTwoEventsForAsync(t, trie)
m := NewModel(trie)
m.width = 120