mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
Use lowercase directories (#1229)
This commit is contained in:
parent
6550984878
commit
60abe4ab6a
1 changed files with 3 additions and 3 deletions
|
@ -299,12 +299,12 @@ func TestPathPrefix(t *testing.T) {
|
||||||
Args []string
|
Args []string
|
||||||
Pattern string
|
Pattern string
|
||||||
}{
|
}{
|
||||||
{"empty", nil, "^testdata/withTests/"},
|
{"empty", nil, "^testdata/withtests/"},
|
||||||
{"prefixed", []string{"--path-prefix=cool"}, "^cool/testdata/withTests"},
|
{"prefixed", []string{"--path-prefix=cool"}, "^cool/testdata/withtests"},
|
||||||
} {
|
} {
|
||||||
t.Run(tt.Name, func(t *testing.T) {
|
t.Run(tt.Name, func(t *testing.T) {
|
||||||
testshared.NewLintRunner(t).Run(
|
testshared.NewLintRunner(t).Run(
|
||||||
append(tt.Args, getTestDataDir("withTests"))..., //nolint:scopelint
|
append(tt.Args, getTestDataDir("withtests"))..., //nolint:scopelint
|
||||||
).ExpectOutputRegexp(
|
).ExpectOutputRegexp(
|
||||||
tt.Pattern, //nolint:scopelint
|
tt.Pattern, //nolint:scopelint
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue