github.com/vvnotw/moby@v1.13.1/pkg/plugins/pluginrpc-gen/fixtures/foo.go (about) 1 package foo 2 3 import ( 4 "fmt" 5 6 aliasedio "io" 7 8 "github.com/docker/docker/pkg/plugins/pluginrpc-gen/fixtures/otherfixture" 9 ) 10 11 var ( 12 errFakeImport = fmt.Errorf("just to import fmt for imports tests") 13 ) 14 15 type wobble struct { 16 Some string 17 Val string 18 Inception *wobble 19 } 20 21 // Fooer is an empty interface used for tests. 22 type Fooer interface{} 23 24 // Fooer2 is an interface used for tests. 25 type Fooer2 interface { 26 Foo() 27 } 28 29 // Fooer3 is an interface used for tests. 30 type Fooer3 interface { 31 Foo() 32 Bar(a string) 33 Baz(a string) (err error) 34 Qux(a, b string) (val string, err error) 35 Wobble() (w *wobble) 36 Wiggle() (w wobble) 37 WiggleWobble(a []*wobble, b []wobble, c map[string]*wobble, d map[*wobble]wobble, e map[string][]wobble, f []*otherfixture.Spaceship) (g map[*wobble]wobble, h [][]*wobble, i otherfixture.Spaceship, j *otherfixture.Spaceship, k map[*otherfixture.Spaceship]otherfixture.Spaceship, l []otherfixture.Spaceship) 38 } 39 40 // Fooer4 is an interface used for tests. 41 type Fooer4 interface { 42 Foo() error 43 } 44 45 // Bar is an interface used for tests. 46 type Bar interface { 47 Boo(a string, b string) (s string, err error) 48 } 49 50 // Fooer5 is an interface used for tests. 51 type Fooer5 interface { 52 Foo() 53 Bar 54 } 55 56 // Fooer6 is an interface used for tests. 57 type Fooer6 interface { 58 Foo(a otherfixture.Spaceship) 59 } 60 61 // Fooer7 is an interface used for tests. 62 type Fooer7 interface { 63 Foo(a *otherfixture.Spaceship) 64 } 65 66 // Fooer8 is an interface used for tests. 67 type Fooer8 interface { 68 Foo(a map[string]otherfixture.Spaceship) 69 } 70 71 // Fooer9 is an interface used for tests. 72 type Fooer9 interface { 73 Foo(a map[string]*otherfixture.Spaceship) 74 } 75 76 // Fooer10 is an interface used for tests. 77 type Fooer10 interface { 78 Foo(a []otherfixture.Spaceship) 79 } 80 81 // Fooer11 is an interface used for tests. 82 type Fooer11 interface { 83 Foo(a []*otherfixture.Spaceship) 84 } 85 86 // Fooer12 is an interface used for tests. 87 type Fooer12 interface { 88 Foo(a aliasedio.Reader) 89 }