Skip to content

Commit f30bee3

Browse files
committed
use new framework
1 parent c86fd34 commit f30bee3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/testdata/interfacebloat.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package testdata
33

44
import "time"
55

6-
type InterfaceBloatExample01 interface { // ERROR "the interface has more than 10 methods: 11"
6+
type InterfaceBloatExample01 interface { // want "the interface has more than 10 methods: 11"
77
a01() time.Duration
88
a02()
99
a03()
@@ -18,7 +18,7 @@ type InterfaceBloatExample01 interface { // ERROR "the interface has more than 1
1818
}
1919

2020
func InterfaceBloatExample02() {
21-
var _ interface { // ERROR "the interface has more than 10 methods: 11"
21+
var _ interface { // want "the interface has more than 10 methods: 11"
2222
a01() time.Duration
2323
a02()
2424
a03()
@@ -33,7 +33,7 @@ func InterfaceBloatExample02() {
3333
}
3434
}
3535

36-
func InterfaceBloatExample03() interface { // ERROR "the interface has more than 10 methods: 11"
36+
func InterfaceBloatExample03() interface { // want "the interface has more than 10 methods: 11"
3737
a01() time.Duration
3838
a02()
3939
a03()
@@ -50,7 +50,7 @@ func InterfaceBloatExample03() interface { // ERROR "the interface has more than
5050
}
5151

5252
type InterfaceBloatExample04 struct {
53-
Foo interface { // ERROR "the interface has more than 10 methods: 11"
53+
Foo interface { // want "the interface has more than 10 methods: 11"
5454
a01() time.Duration
5555
a02()
5656
a03()
@@ -88,7 +88,7 @@ type InterfaceBloatExample05 interface {
8888
}
8989

9090
type InterfaceBloatExample06 interface {
91-
interface { // ERROR "the interface has more than 10 methods: 11"
91+
interface { // want "the interface has more than 10 methods: 11"
9292
a01() time.Duration
9393
a02()
9494
a03()

0 commit comments

Comments
 (0)