Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChanInterface ¶
type ChanInterface struct { ChanMethodCall struct { CallCount int Receives struct { IntChannel chan int StringChannel <-chan string } Returns struct { BoolChannel chan<- bool } Stub func(chan int, <-chan string) chan<- bool // contains filtered or unexported fields } }
func (*ChanInterface) ChanMethod ¶
func (f *ChanInterface) ChanMethod(param1 chan int, param2 <-chan string) chan<- bool
type Command ¶
type Command struct { ExecuteCall struct { CallCount int Receives struct { Args []string } Returns struct { Error error } Stub func([]string) error // contains filtered or unexported fields } UsageCall struct { CallCount int Returns struct { Usage jhanda.Usage } Stub func() jhanda.Usage // contains filtered or unexported fields } }
type DuplicateArgumentInterface ¶
type DuplicateArgumentInterface struct { DuplicatesCall struct { CallCount int Receives struct { String_1 string String_2 string Int int } Returns struct { String string Int_1 int Int_2 int } Stub func(string, string, int) (string, int, int) // contains filtered or unexported fields } }
func (*DuplicateArgumentInterface) Duplicates ¶
type FunctionInterface ¶
type FunctionInterface struct { FuncMethodCall struct { CallCount int Receives struct { FuncStringError func(string) error } Returns struct { FuncIntBool func(int) bool } Stub func(func(string) error) func(int) bool // contains filtered or unexported fields } }
func (*FunctionInterface) FuncMethod ¶
func (f *FunctionInterface) FuncMethod(param1 func(string) error) func(int) bool
type ModuleInterface ¶
type ModuleInterface struct { SomeMethodCall struct { CallCount int Receives struct { Usage jhanda.Usage } Stub func(jhanda.Usage) // contains filtered or unexported fields } }
func (*ModuleInterface) SomeMethod ¶
func (f *ModuleInterface) SomeMethod(param1 jhanda.Usage)
type Reader ¶
type SimpleInterface ¶
type SimpleInterface struct { OtherMethodCall struct { CallCount int Receives struct { Buffer *bytes.Buffer } Returns struct { Reader io.Reader Error error } Stub func(*bytes.Buffer) (io.Reader, error) // contains filtered or unexported fields } SomeMethodCall struct { CallCount int Receives struct { SomeParam *bytes.Buffer } Returns struct { SomeResult io.Reader } Stub func(*bytes.Buffer) io.Reader // contains filtered or unexported fields } }
func (*SimpleInterface) OtherMethod ¶
func (*SimpleInterface) SomeMethod ¶
func (f *SimpleInterface) SomeMethod(param1 *bytes.Buffer) io.Reader
type SomeNamedInterface ¶
type SomeNamedInterface struct { SomeMethodCall struct { CallCount int Receives struct { SomeParam *bytes.Buffer } Returns struct { SomeResult io.Reader } Stub func(*bytes.Buffer) io.Reader // contains filtered or unexported fields } }
func (*SomeNamedInterface) SomeMethod ¶
func (f *SomeNamedInterface) SomeMethod(param1 *bytes.Buffer) io.Reader
type VariadicInterface ¶
type VariadicInterface struct { VariadicMethodCall struct { CallCount int Receives struct { SomeParams []int } Stub func(...int) // contains filtered or unexported fields } }
func (*VariadicInterface) VariadicMethod ¶
func (f *VariadicInterface) VariadicMethod(param1 ...int)
Click to show internal directories.
Click to hide internal directories.