Skip to content

Commit 96ac774

Browse files
committed
fix
1 parent e5c3405 commit 96ac774

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pkg/testcoverage/coverage/types_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"github.com/stretchr/testify/assert"
77

88
. "github.com/vladopajic/go-test-coverage/v2/pkg/testcoverage/coverage"
9+
"github.com/vladopajic/go-test-coverage/v2/pkg/testcoverage/path"
910
)
1011

1112
func TestCoveredPercentage(t *testing.T) {
@@ -38,22 +39,22 @@ func TestStripPrefix(t *testing.T) {
3839
noPrefix string
3940
}{
4041
{
41-
file: "github.com/example/foo/bar.go",
42+
file: path.NormalizePath("github.com/example/foo/bar.go"),
4243
prefix: "github.com/example",
4344
noPrefix: "foo/bar.go",
4445
},
4546
{
46-
file: "github.com/example/foo/bar.go",
47+
file: path.NormalizePath("github.com/example/foo/bar.go"),
4748
prefix: "github.com/example/",
4849
noPrefix: "foo/bar.go",
4950
},
5051
{
51-
file: "github.com/example/foo/bar.go",
52+
file: path.NormalizePath("github.com/example/foo/bar.go"),
5253
prefix: "example/foo",
5354
noPrefix: "bar.go",
5455
},
5556
{
56-
file: "github.com/example/foo/bar.go",
57+
file: path.NormalizePath("github.com/example/foo/bar.go"),
5758
prefix: "github.com/example1/",
5859
noPrefix: "github.com/example/foo/bar.go",
5960
},

0 commit comments

Comments
 (0)