File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package testdata
3
3
4
4
import "time"
5
5
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"
7
7
a01 () time.Duration
8
8
a02 ()
9
9
a03 ()
@@ -18,7 +18,7 @@ type InterfaceBloatExample01 interface { // ERROR "the interface has more than 1
18
18
}
19
19
20
20
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"
22
22
a01 () time.Duration
23
23
a02 ()
24
24
a03 ()
@@ -33,7 +33,7 @@ func InterfaceBloatExample02() {
33
33
}
34
34
}
35
35
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"
37
37
a01 () time.Duration
38
38
a02 ()
39
39
a03 ()
@@ -50,7 +50,7 @@ func InterfaceBloatExample03() interface { // ERROR "the interface has more than
50
50
}
51
51
52
52
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"
54
54
a01 () time.Duration
55
55
a02 ()
56
56
a03 ()
@@ -88,7 +88,7 @@ type InterfaceBloatExample05 interface {
88
88
}
89
89
90
90
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"
92
92
a01 () time.Duration
93
93
a02 ()
94
94
a03 ()
You can’t perform that action at this time.
0 commit comments