Skip to content

Commit 0d9dfa0

Browse files
committed
chore: update tests
1 parent 8d1b7e1 commit 0d9dfa0

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

pkg/golinters/exptostd/testdata/exptostd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package testdata
44
import (
55
"fmt"
66

7-
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' can be replaced by 'maps'`
8-
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' can be replaced by 'slices'`
7+
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' may be replaced by 'maps'`
8+
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' may be replaced by 'slices'`
99
)
1010

1111
func _(m, a map[string]string) {

pkg/golinters/exptostd/testdata/exptostd_cgo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"fmt"
1616
"unsafe"
1717

18-
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' can be replaced by 'maps'`
19-
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' can be replaced by 'slices'`
18+
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' may be replaced by 'maps'`
19+
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' may be replaced by 'slices'`
2020
)
2121

2222
func _() {

pkg/golinters/exptostd/testdata/exptostd_go123_cgo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
"fmt"
1818
"unsafe"
1919

20-
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' can be replaced by 'maps'`
21-
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' can be replaced by 'slices'`
20+
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' may be replaced by 'maps'`
21+
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' may be replaced by 'slices'`
2222
)
2323

2424
func _() {

pkg/golinters/exptostd/testdata/fix/in/exptostd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package testdata
44
import (
55
"fmt"
66

7-
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' can be replaced by 'maps'`
8-
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' can be replaced by 'slices'`
7+
"golang.org/x/exp/maps" // want `Import statement 'golang.org/x/exp/maps' may be replaced by 'maps'`
8+
"golang.org/x/exp/slices" // want `Import statement 'golang.org/x/exp/slices' may be replaced by 'slices'`
99
)
1010

1111
func _(m, a map[string]string) {

pkg/golinters/exptostd/testdata/fix/out/exptostd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package testdata
44
import (
55
"fmt"
66

7-
"maps" // want `Import statement 'golang.org/x/exp/maps' can be replaced by 'maps'`
8-
"slices" // want `Import statement 'golang.org/x/exp/slices' can be replaced by 'slices'`
7+
"maps" // want `Import statement 'golang.org/x/exp/maps' may be replaced by 'maps'`
8+
"slices" // want `Import statement 'golang.org/x/exp/slices' may be replaced by 'slices'`
99
)
1010

1111
func _(m, a map[string]string) {

0 commit comments

Comments
 (0)