summaryrefslogtreecommitdiff
path: root/internal/flags/flags_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-12 23:26:02 +0200
committerPaul Buetow <paul@buetow.org>2026-03-12 23:26:02 +0200
commit28338f46461c684f1448878a5d9dcd7f2121f7d2 (patch)
treedc367c25c342c557100670c962b0e8deceb7dae7 /internal/flags/flags_test.go
parentf28dab3d42c6e4a33642b990f60f69abc2d89f07 (diff)
fix: restore legacy flamegraph trace output mode
Diffstat (limited to 'internal/flags/flags_test.go')
-rw-r--r--internal/flags/flags_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/flags/flags_test.go b/internal/flags/flags_test.go
index 2469068..4485f34 100644
--- a/internal/flags/flags_test.go
+++ b/internal/flags/flags_test.go
@@ -102,6 +102,19 @@ func TestParseTestLiveFlamesFlag(t *testing.T) {
}
}
+func TestParseFlamegraphOutputFlags(t *testing.T) {
+ cfg, err := parseForTest(t, "--flamegraph", "--name", "scenario-run")
+ if err != nil {
+ t.Fatalf("parse returned error: %v", err)
+ }
+ if !cfg.FlamegraphOutput {
+ t.Fatalf("expected --flamegraph to enable .ior.zst output mode")
+ }
+ if got, want := cfg.OutputName, "scenario-run"; got != want {
+ t.Fatalf("output name = %q, want %q", got, want)
+ }
+}
+
func TestParseDefaultCollapsedFieldsOrder(t *testing.T) {
cfg, err := parseForTest(t)
if err != nil {