Documentation
¶
Index ¶
- type Method
- type Mock
- func (m Mock) Ast(chanSize int) []ast.Decl
- func (m Mock) Constructor(chanSize int) *ast.FuncDecl
- func (m Mock) Decl() *ast.GenDecl
- func (m Mock) Methods() (methods []Method)
- func (m Mock) Name() string
- func (m Mock) PrependLocalPackage(name string)
- func (m Mock) SetBlockingReturn(blockingReturn bool)
- type Mocks
- type TypeFinder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Method ¶
type Method struct {
// contains filtered or unexported fields
}
func (Method) PrependLocalPackage ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func (Mock) PrependLocalPackage ¶
func (Mock) SetBlockingReturn ¶
type Mocks ¶
type Mocks []Mock
func Generate ¶
func Generate(finder TypeFinder) (Mocks, error)
func (Mocks) PrependLocalPackage ¶
func (Mocks) SetBlockingReturn ¶
type TypeFinder ¶
Click to show internal directories.
Click to hide internal directories.