diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-14 23:47:15 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-14 23:47:15 +0200 |
| commit | 89c1fcd8fae93a64d304251a35a65763818aa8b1 (patch) | |
| tree | c695ff9c729a12eeab63d8a7743a6d789f64de27 /internal/plan/json_test.go | |
| parent | 97c8164bc81e0a438dab92d7244485005dac4ff2 (diff) | |
| download | krino-89c1fcd8fae93a64d304251a35a65763818aa8b1.tar.gz krino-89c1fcd8fae93a64d304251a35a65763818aa8b1.zip | |
--json carries exclusions and matching warnings
Diffstat (limited to 'internal/plan/json_test.go')
| -rw-r--r-- | internal/plan/json_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
