Passed
Push — master ( f028f1...4fb92b )
by Stefano
02:12
created

pkg/scan/output/nullsaver_test.go   A

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 12
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A output_test.TestNullSaver 0 8 1
1
package output_test
2
3
import (
4
	"testing"
5
6
	"github.com/stefanoj3/dirstalk/pkg/scan"
7
	"github.com/stefanoj3/dirstalk/pkg/scan/output"
8
	"github.com/stretchr/testify/assert"
9
)
10
11
func TestNullSaver(t *testing.T) {
12
	t.Parallel()
13
14
	sut := output.NewNullSaver()
15
16
	assert.NoError(t, sut.Save(scan.Result{}))
17
	assert.NoError(t, sut.Close())
18
	assert.NoError(t, sut.Save(scan.Result{}))
19
}
20