From 89c1fcd8fae93a64d304251a35a65763818aa8b1 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 23:47:15 +0200 Subject: --json carries exclusions and matching warnings --- internal/plan/json_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/plan/json_test.go') diff --git a/internal/plan/json_test.go b/internal/plan/json_test.go index 86c181c..d67313e 100644 --- a/internal/plan/json_test.go +++ b/internal/plan/json_test.go @@ -21,7 +21,7 @@ func TestJSONDir(t *testing.T) { }, Warnings: []string{"moved more than once; a (stop) is probably missing"}, }} - b, err := json.MarshalIndent(JSON{Version: 1, Note: jsonNote, Dirs: []JSONDir{NewJSONDir("dl", "/r", chains, nil)}}, "", " ") + b, err := json.MarshalIndent(JSON{Version: 1, Note: jsonNote, Dirs: []JSONDir{NewJSONDir("dl", "/r", chains, nil, nil)}}, "", " ") if err != nil { t.Fatal(err) } @@ -61,7 +61,7 @@ func TestJSONDir(t *testing.T) { func TestJSONDirEmptyStepsAndFilesAreArraysNotNull(t *testing.T) { stepless := []Chain{{File: file("/r", "y.pdf")}} - dir := NewJSONDir("dl", "/r", stepless, nil) + dir := NewJSONDir("dl", "/r", stepless, nil, nil) b, err := json.Marshal(dir) if err != nil { t.Fatal(err) @@ -73,7 +73,7 @@ func TestJSONDirEmptyStepsAndFilesAreArraysNotNull(t *testing.T) { t.Errorf("stepless file's steps should marshal as []: %s", b) } - empty := NewJSONDir("dl", "/r", nil, nil) + empty := NewJSONDir("dl", "/r", nil, nil, nil) b, err = json.Marshal(empty) if err != nil { t.Fatal(err) -- cgit v1.3