| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package result_test |
||
| 2 | |||
| 3 | import ( |
||
| 4 | "testing" |
||
| 5 | |||
| 6 | "github.com/stefanoj3/dirstalk/pkg/result" |
||
| 7 | "github.com/stretchr/testify/assert" |
||
| 8 | ) |
||
| 9 | |||
| 10 | func TestLoadResultsFromFileShouldErrForInvalidPath(t *testing.T) { |
||
| 11 | _, err := result.LoadResultsFromFile("/root/123/abc") |
||
| 12 | assert.Error(t, err) |
||
| 13 | |||
| 14 | assert.Contains(t, err.Error(), "no such file or directory") |
||
| 15 | } |
||
| 16 |