dev: add fix test for mirror linter (#4598)

This commit is contained in:
Oleksandr Redko 2024-03-29 22:01:06 +02:00 committed by GitHub
parent dac4ba3f13
commit 3945188b29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

11
test/testdata/fix/in/mirror.go vendored Normal file
View File

@ -0,0 +1,11 @@
//golangcitest:args -Emirror
//golangcitest:expected_exitcode 0
package testdata
import (
"unicode/utf8"
)
func foobar() {
_ = utf8.RuneCount([]byte("foobar"))
}

11
test/testdata/fix/out/mirror.go vendored Normal file
View File

@ -0,0 +1,11 @@
//golangcitest:args -Emirror
//golangcitest:expected_exitcode 0
package testdata
import (
"unicode/utf8"
)
func foobar() {
_ = utf8.RuneCountInString("foobar")
}