Skip to content

Commit

Permalink
use new framework
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Aug 20, 2022
1 parent c86fd34 commit f30bee3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/testdata/interfacebloat.go
Expand Up @@ -3,7 +3,7 @@ package testdata

import "time"

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

func InterfaceBloatExample02() {
var _ interface { // ERROR "the interface has more than 10 methods: 11"
var _ interface { // want "the interface has more than 10 methods: 11"
a01() time.Duration
a02()
a03()
Expand All @@ -33,7 +33,7 @@ func InterfaceBloatExample02() {
}
}

func InterfaceBloatExample03() interface { // ERROR "the interface has more than 10 methods: 11"
func InterfaceBloatExample03() interface { // want "the interface has more than 10 methods: 11"
a01() time.Duration
a02()
a03()
Expand All @@ -50,7 +50,7 @@ func InterfaceBloatExample03() interface { // ERROR "the interface has more than
}

type InterfaceBloatExample04 struct {
Foo interface { // ERROR "the interface has more than 10 methods: 11"
Foo interface { // want "the interface has more than 10 methods: 11"
a01() time.Duration
a02()
a03()
Expand Down Expand Up @@ -88,7 +88,7 @@ type InterfaceBloatExample05 interface {
}

type InterfaceBloatExample06 interface {
interface { // ERROR "the interface has more than 10 methods: 11"
interface { // want "the interface has more than 10 methods: 11"
a01() time.Duration
a02()
a03()
Expand Down

0 comments on commit f30bee3

Please sign in to comment.