dev: add fix test for mirror linter (#4598)
This commit is contained in:
parent
dac4ba3f13
commit
3945188b29
11
test/testdata/fix/in/mirror.go
vendored
Normal file
11
test/testdata/fix/in/mirror.go
vendored
Normal 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
11
test/testdata/fix/out/mirror.go
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
//golangcitest:args -Emirror
|
||||||
|
//golangcitest:expected_exitcode 0
|
||||||
|
package testdata
|
||||||
|
|
||||||
|
import (
|
||||||
|
"unicode/utf8"
|
||||||
|
)
|
||||||
|
|
||||||
|
func foobar() {
|
||||||
|
_ = utf8.RuneCountInString("foobar")
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user