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

output_test.TestNullSaver   A

Complexity

Conditions 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nop 1
dl 0
loc 6
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
	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