| Conditions | 1 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package cmd_test |
||
| 35 | func TestResultView(t *testing.T) { |
||
| 36 | logger, loggerBuffer := test.NewLogger() |
||
| 37 | |||
| 38 | c := createCommand(logger) |
||
| 39 | assert.NotNil(t, c) |
||
| 40 | |||
| 41 | err := executeCommand(c, "result.view", "-r", "testdata/out.txt") |
||
| 42 | assert.NoError(t, err) |
||
| 43 | |||
| 44 | expected := `/ |
||
| 45 | ├── adview |
||
| 46 | ├── partners |
||
| 47 | │ └── terms |
||
| 48 | └── s |
||
| 49 | ` |
||
| 50 | |||
| 51 | assert.Contains(t, loggerBuffer.String(), expected) |
||
| 52 | } |
||
| 53 |