Skip to content

Commit 4e50bad

Browse files
committed
fix windows path
1 parent f00b79d commit 4e50bad

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

pkg/testcoverage/coverage/types.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ package coverage
33
import (
44
"regexp"
55
"strings"
6-
7-
"github.com/vladopajic/go-test-coverage/v2/pkg/testcoverage/path"
86
)
97

108
type Stats struct {
@@ -61,7 +59,6 @@ func compileExcludePathRules(excludePaths []string) []*regexp.Regexp {
6159
compiled := make([]*regexp.Regexp, len(excludePaths))
6260

6361
for i, pattern := range excludePaths {
64-
pattern = path.NormalizePathInRegex(pattern)
6562
compiled[i] = regexp.MustCompile(pattern)
6663
}
6764

pkg/testcoverage/path/path.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

pkg/testcoverage/utils.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package testcoverage
22

33
import (
44
"regexp"
5-
6-
"github.com/vladopajic/go-test-coverage/v2/pkg/testcoverage/path"
75
)
86

97
type regRule struct {
@@ -29,9 +27,8 @@ func compileOverridePathRules(cfg Config) []regRule {
2927
compiled := make([]regRule, len(cfg.Override))
3028

3129
for i, o := range cfg.Override {
32-
pattern := path.NormalizePathInRegex(o.Path)
3330
compiled[i] = regRule{
34-
reg: regexp.MustCompile(pattern),
31+
reg: regexp.MustCompile(o.Path),
3532
threshold: o.Threshold,
3633
}
3734
}

0 commit comments

Comments
 (0)