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

ErrForInvalidPath   A

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nop 1
dl 0
loc 5
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(), "permission denied")
15
}
16