Passed
Push — master ( bd2e0b...bf7a11 )
by Stefano
02:44
created

pkg/result/load_integration_darwin_test.go   A

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 9
dl 0
loc 14
rs 10
c 0
b 0
f 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