AliasedInterface is an interface that embeds an interface in an aliased package.
type AliasedInterface interface {
alias.AnotherInterface
}
go:generate counterfeiter . DotImports
type DotImports interface {
DoThings(io.Writer, *File) *http.Client
}
go:generate counterfeiter . EmbedsInterfaces
type EmbedsInterfaces interface {
http.Handler
another_package.AnotherInterface
InterfaceToEmbed
DoThings()
}
go:generate counterfeiter . FirstInterface
type FirstInterface interface {
DoThings()
}
go:generate counterfeiter . HasImports
type HasImports interface {
DoThings(io.Writer, *some_alias.File) *http.Client
}
go:generate counterfeiter . HasOtherTypes
type HasOtherTypes interface {
GetThing(SomeString) SomeFunc
}
go:generate counterfeiter . HasVarArgs
type HasVarArgs interface {
DoThings(int, ...string) int
DoMoreThings(int, int, ...string) int
}
go:generate counterfeiter . HasVarArgsWithLocalTypes
type HasVarArgsWithLocalTypes interface {
DoThings(...LocalType)
}
go:generate counterfeiter . ImportsGoHyphenPackage
type ImportsGoHyphenPackage interface {
UseHyphenType(hyphenpackage.HyphenType)
}
type InterfaceToEmbed interface {
EmbeddedMethod() string
}
type LocalType struct{}
type Params struct{}
type Request struct{}
type RequestFactory func(Params, map[string]interface{}) (Request, error)
go:generate counterfeiter . ReusesArgTypes
type ReusesArgTypes interface {
DoThings(x, y string)
}
go:generate counterfeiter . SecondInterface
type SecondInterface interface {
EmbeddedMethod() string
}
type SomeFunc func(SomeNum) bool
type SomeNum uint64
type SomeString string
go:generate counterfeiter . Something
type Something interface {
DoThings(string, uint64) (int, error)
DoNothing()
DoASlice([]byte)
DoAnArray([4]byte)
}
go:generate counterfeiter . SomethingElse
type SomethingElse interface {
ReturnStuff() (a, b int)
}
go:generate counterfeiter . SomethingFactory
type SomethingFactory func(string, map[string]interface{}) string
SomethingWithForeignInterface is an interface that embeds a foreign interface.
type SomethingWithForeignInterface interface {
the_aliased_package.InAliasedPackage
}
| Name | Synopsis |
|---|---|
| .. | |
| aliased_package | |
| another_package | |
| dup_packages | |
| a | |
| foo | |
| b | |
| foo | |
| foo | |
| go-hyphenpackage | |
| hyphenated_package_same_name | |
| hyphen-ated | |
| some_package | |
| some_package | |
| packagegen | Code generated by counterfeiter. |
| apackage | |
| sync | |