diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-03 13:00:38 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-03 13:00:38 +0200 |
| commit | f92382c20193a5366d15c7347dcc8ed2743f3b85 (patch) | |
| tree | 11789e0336233501c778c521075f20c8d2c3558d /internal/flags/flags_test.go | |
| parent | 92e87642f2936f0da63d32113f75633b38be24f6 (diff) | |
Add WASM-ready flamegraph JSON export
Diffstat (limited to 'internal/flags/flags_test.go')
| -rw-r--r-- | internal/flags/flags_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/flags/flags_test.go b/internal/flags/flags_test.go index 32af4bd..11414d8 100644 --- a/internal/flags/flags_test.go +++ b/internal/flags/flags_test.go @@ -104,6 +104,16 @@ func TestParseOpenFlags(t *testing.T) { } } +func TestParseFlamegraphJSONFlag(t *testing.T) { + cfg, err := parseForTest(t, "-flamegraphJson") + if err != nil { + t.Fatalf("parse returned error: %v", err) + } + if !cfg.FlamegraphJSON { + t.Fatalf("expected -flamegraphJson to enable JSON export") + } +} + func TestParseDefaultCollapsedFieldsOrder(t *testing.T) { cfg, err := parseForTest(t) if err != nil { |
