Passed
Pull Request — master (#68)
by Stefano
02:12
created

pkg/scan/output/nullsaver_test.go   A

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 11
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A output_test.TestNullSaver 0 6 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
	sut := output.NewNullSaver()
13
14
	assert.NoError(t, sut.Save(scan.Result{}))
15
	assert.NoError(t, sut.Close())
16
	assert.NoError(t, sut.Save(scan.Result{}))
17
}
18