foo.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. package foo
  2. import (
  3. "fmt"
  4. aliasedio "io"
  5. "github.com/docker/docker/pkg/plugins/pluginrpc-gen/fixtures/otherfixture"
  6. )
  7. var (
  8. errFakeImport = fmt.Errorf("just to import fmt for imports tests")
  9. )
  10. type wobble struct {
  11. Some string
  12. Val string
  13. Inception *wobble
  14. }
  15. // Fooer is an empty interface used for tests.
  16. type Fooer interface{}
  17. // Fooer2 is an interface used for tests.
  18. type Fooer2 interface {
  19. Foo()
  20. }
  21. // Fooer3 is an interface used for tests.
  22. type Fooer3 interface {
  23. Foo()
  24. Bar(a string)
  25. Baz(a string) (err error)
  26. Qux(a, b string) (val string, err error)
  27. Wobble() (w *wobble)
  28. Wiggle() (w wobble)
  29. 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)
  30. }
  31. // Fooer4 is an interface used for tests.
  32. type Fooer4 interface {
  33. Foo() error
  34. }
  35. // Bar is an interface used for tests.
  36. type Bar interface {
  37. Boo(a string, b string) (s string, err error)
  38. }
  39. // Fooer5 is an interface used for tests.
  40. type Fooer5 interface {
  41. Foo()
  42. Bar
  43. }
  44. // Fooer6 is an interface used for tests.
  45. type Fooer6 interface {
  46. Foo(a otherfixture.Spaceship)
  47. }
  48. // Fooer7 is an interface used for tests.
  49. type Fooer7 interface {
  50. Foo(a *otherfixture.Spaceship)
  51. }
  52. // Fooer8 is an interface used for tests.
  53. type Fooer8 interface {
  54. Foo(a map[string]otherfixture.Spaceship)
  55. }
  56. // Fooer9 is an interface used for tests.
  57. type Fooer9 interface {
  58. Foo(a map[string]*otherfixture.Spaceship)
  59. }
  60. // Fooer10 is an interface used for tests.
  61. type Fooer10 interface {
  62. Foo(a []otherfixture.Spaceship)
  63. }
  64. // Fooer11 is an interface used for tests.
  65. type Fooer11 interface {
  66. Foo(a []*otherfixture.Spaceship)
  67. }
  68. // Fooer12 is an interface used for tests.
  69. type Fooer12 interface {
  70. Foo(a aliasedio.Reader)
  71. }