Skip to content

Commit 83ca143

Browse files
committed
fix test
1 parent 96ac774 commit 83ca143

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/testcoverage/coverage/types_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ func TestStripPrefix(t *testing.T) {
4141
{
4242
file: path.NormalizePath("github.com/example/foo/bar.go"),
4343
prefix: "github.com/example",
44-
noPrefix: "foo/bar.go",
44+
noPrefix: path.NormalizePath("foo/bar.go"),
4545
},
4646
{
4747
file: path.NormalizePath("github.com/example/foo/bar.go"),
4848
prefix: "github.com/example/",
49-
noPrefix: "foo/bar.go",
49+
noPrefix: path.NormalizePath("foo/bar.go"),
5050
},
5151
{
5252
file: path.NormalizePath("github.com/example/foo/bar.go"),
5353
prefix: "example/foo",
54-
noPrefix: "bar.go",
54+
noPrefix: path.NormalizePath("bar.go"),
5555
},
5656
{
5757
file: path.NormalizePath("github.com/example/foo/bar.go"),
5858
prefix: "github.com/example1/",
59-
noPrefix: "github.com/example/foo/bar.go",
59+
noPrefix: path.NormalizePath("github.com/example/foo/bar.go"),
6060
},
6161
}
6262

0 commit comments

Comments
 (0)