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

output_test.TestNullSaver   A

Complexity

Conditions 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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