Skip to content

Commit 3945188

Browse files
authored
dev: add fix test for mirror linter (#4598)
1 parent dac4ba3 commit 3945188

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

test/testdata/fix/in/mirror.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//golangcitest:args -Emirror
2+
//golangcitest:expected_exitcode 0
3+
package testdata
4+
5+
import (
6+
"unicode/utf8"
7+
)
8+
9+
func foobar() {
10+
_ = utf8.RuneCount([]byte("foobar"))
11+
}

test/testdata/fix/out/mirror.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//golangcitest:args -Emirror
2+
//golangcitest:expected_exitcode 0
3+
package testdata
4+
5+
import (
6+
"unicode/utf8"
7+
)
8+
9+
func foobar() {
10+
_ = utf8.RuneCountInString("foobar")
11+
}

0 commit comments

Comments
 (0)