Skip to content

Commit a6d0f2e

Browse files
committed
style: use testify for reader test
Signed-off-by: Zxilly <[email protected]>
1 parent 8d5c3e6 commit a6d0f2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/utils/reader_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ func TestReaderAtAdapter_Read(t *testing.T) {
2525
readData = make([]byte, 10)
2626
n, err = reader.Read(readData)
2727
assert.ErrorIs(t, err, io.EOF)
28-
assert.Equal(t, n, 0)
28+
assert.Zero(t, n)
2929
}

internal/utils/utils_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func TestPrefixToPath(t *testing.T) {
9797
}
9898
}
9999

100-
func TestIsJson(t *testing.T) {
100+
func TestDetectJson(t *testing.T) {
101101
tests := []struct {
102102
name string
103103
content string

0 commit comments

Comments
 (0)