Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileHelperMock ¶
type FileHelperMock struct { ExistsCall struct { Receives struct { Paths []string } Returns map[string]bool DefaultReturn bool } WriteCall struct { Receives struct { Path string Data string } Returns struct { Error error } } }
FileHelperMock mock-impl of FileHelper-interface
func (*FileHelperMock) Exists ¶
func (fh *FileHelperMock) Exists(path string) bool
Exists records callers arguments in ExistsCall.Receives and Returns values of ExistsCall.Returns based on given path. if path not found it returns ExistsCall.DefaultReturn
type IPDetectorMock ¶
IPDetectorMock mock-impl of IPDetector-interface
func (IPDetectorMock) Detect ¶
func (ipd IPDetectorMock) Detect() net.IP
Detect returns DetectCall.Returns on every call
type TemplateLoaderMock ¶
type TemplateLoaderMock struct { LoadCall struct { Receives struct { Paths []string } Returns struct { Data map[interface{}]interface{} Err map[string]error } } }
TemplateLoaderMock mock-impl of TemplateLoader-interface
Click to show internal directories.
Click to hide internal directories.