(t *testing.T, output string)
| 79 | } |
| 80 | |
| 81 | func decodeRemoveOutputString(t *testing.T, output string) removeOutput { |
| 82 | t.Helper() |
| 83 | |
| 84 | var got removeOutput |
| 85 | if err := json.Unmarshal([]byte(output), &got); err != nil { |
| 86 | t.Fatalf("decode JSON output: %v\noutput: %s", err, output) |
| 87 | } |
| 88 | if got.Input == nil { |
| 89 | t.Fatalf("input = nil, want empty object") |
| 90 | } |
| 91 | if len(got.Input) != 0 { |
| 92 | t.Fatalf("input = %+v, want empty object", got.Input) |
| 93 | } |
| 94 | if got.Warnings == nil { |
| 95 | t.Fatalf("warnings = nil, want empty array") |
| 96 | } |
| 97 | if len(got.Warnings) != 0 { |
| 98 | t.Fatalf("warnings = %+v, want empty", got.Warnings) |
| 99 | } |
| 100 | return got |
| 101 | } |
| 102 | |
| 103 | func rmNonEmptyFolderResult() *files.ListFolderResult { |
| 104 | return &files.ListFolderResult{ |
no outgoing calls
no test coverage detected