Skip to content

Commit

Permalink
analysis/lint/testutil: handle Windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Nov 25, 2023
1 parent a29b6c0 commit 9fc43cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions analysis/lint/testutil/util.go
Expand Up @@ -69,6 +69,8 @@ func Run(t *testing.T, a *lint.Analyzer) {

tests := make([]Test, 0, len(dirs))
for _, dir := range dirs {
// Work around Windows paths
dir = strings.ReplaceAll(dir, `\`, `/`)
t := Test{
Dir: strings.TrimPrefix(dir, "testdata/src/"),
}
Expand Down

0 comments on commit 9fc43cd

Please sign in to comment.