Skip to content

Commit 7099333

Browse files
committed
Fixed unittest
1 parent c9c77c7 commit 7099333

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

testdata/colored_03.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
github.com/msoap/go-carpet/terminal_posix.go - 100.0%
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
//go:build !windows
34
// +build !windows
45

56
package main

testdata/cover_02.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
mode: count
2-
github.com/msoap/go-carpet/terminal_posix.go:11.2,11.31 1 1
2+
github.com/msoap/go-carpet/terminal_posix.go:12.2,12.31 1 1

unix_only_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ func Test_getCoverForDir(t *testing.T) {
6969
t.Errorf("13. getCoverForDir() failed: %v", err)
7070
}
7171
if !reflect.DeepEqual(bytes, expect) {
72-
t.Errorf("14. getCoverForDir() not equal")
72+
t.Errorf("14. getCoverForDir() not equal\ngot:\n%s\nexpect:\n%s\n", bytes, expect)
7373
}
7474
}

0 commit comments

Comments
 (0)