File tree Expand file tree Collapse file tree 3 files changed +1
-24
lines changed Expand file tree Collapse file tree 3 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ package coverage
33import (
44 "regexp"
55 "strings"
6-
7- "github.com/vladopajic/go-test-coverage/v2/pkg/testcoverage/path"
86)
97
108type 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ package testcoverage
22
33import (
44 "regexp"
5-
6- "github.com/vladopajic/go-test-coverage/v2/pkg/testcoverage/path"
75)
86
97type 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 }
You can’t perform that action at this time.
0 commit comments