@@ -60,7 +60,7 @@ func TestExcludeRules_multiple(t *testing.T) {
60
60
{Path : "e_test.go" , Text : "testonly" , Linter : "linter" },
61
61
{Path : "e.go" , Text : "nontestonly" , Linter : "linter" },
62
62
{Path : "e_test.go" , Text : "nontestonly" , Linter : "linter" },
63
- {Path : filepath .Join ("testdata" , " exclude_rules.go" ), Line : 3 , Linter : "lll" },
63
+ {Path : filepath .FromSlash ("testdata/exclude_rules/ exclude_rules.go" ), Line : 3 , Linter : "lll" },
64
64
}
65
65
66
66
var issues []result.Issue
@@ -219,7 +219,7 @@ func TestExcludeRules_caseSensitive_multiple(t *testing.T) {
219
219
{Path : "e_test.go" , Text : "another" , Linter : "linter" },
220
220
{Path : "e_test.go" , Text : "testonly" , Linter : "linter" },
221
221
{Path : "e_test.go" , Text : "testOnly" , Linter : "linter" },
222
- {Path : filepath .Join ("testdata" , "exclude_rules_case_sensitive .go" ), Line : 3 , Linter : "lll" },
222
+ {Path : filepath .FromSlash ("testdata/exclude_rules/case_sensitive .go" ), Line : 3 , Linter : "lll" },
223
223
}
224
224
225
225
var issues []result.Issue
@@ -245,7 +245,7 @@ func TestExcludeRules_caseSensitive_multiple(t *testing.T) {
245
245
{Path : "e_Test.go" , Text : "normal" , Linter : "testlinter" },
246
246
{Path : "e_test.go" , Text : "another" , Linter : "linter" },
247
247
{Path : "e_test.go" , Text : "testOnly" , Linter : "linter" },
248
- {Path : filepath .Join ("testdata" , "exclude_rules_case_sensitive .go" ), Line : 3 , Linter : "lll" },
248
+ {Path : filepath .FromSlash ("testdata/exclude_rules/case_sensitive .go" ), Line : 3 , Linter : "lll" },
249
249
}
250
250
251
251
assert .Equal (t , expectedCases , resultingCases )
0 commit comments