File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
pkg/testcoverage/coverage Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 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
1112func 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 },
You can’t perform that action at this time.
0 commit comments