From 3945188b29892b80a701e8de4c8b456325a8f648 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Fri, 29 Mar 2024 22:01:06 +0200 Subject: [PATCH] dev: add fix test for mirror linter (#4598) --- test/testdata/fix/in/mirror.go | 11 +++++++++++ test/testdata/fix/out/mirror.go | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/testdata/fix/in/mirror.go create mode 100644 test/testdata/fix/out/mirror.go diff --git a/test/testdata/fix/in/mirror.go b/test/testdata/fix/in/mirror.go new file mode 100644 index 00000000..94c0637f --- /dev/null +++ b/test/testdata/fix/in/mirror.go @@ -0,0 +1,11 @@ +//golangcitest:args -Emirror +//golangcitest:expected_exitcode 0 +package testdata + +import ( + "unicode/utf8" +) + +func foobar() { + _ = utf8.RuneCount([]byte("foobar")) +} diff --git a/test/testdata/fix/out/mirror.go b/test/testdata/fix/out/mirror.go new file mode 100644 index 00000000..05cbc544 --- /dev/null +++ b/test/testdata/fix/out/mirror.go @@ -0,0 +1,11 @@ +//golangcitest:args -Emirror +//golangcitest:expected_exitcode 0 +package testdata + +import ( + "unicode/utf8" +) + +func foobar() { + _ = utf8.RuneCountInString("foobar") +}