Documentation ¶
Overview ¶
Package mock_addRoute is a generated GoMock package.
Index ¶
- func AddRoute(c *gofr.Context) (interface{}, error)
- type Handler
- func (h Handler) Chdir(dir string) error
- func (h Handler) Getwd() (string, error)
- func (h Handler) Help() string
- func (h Handler) IsNotExist(err error) bool
- func (h Handler) Match(pattern string, b []byte) (bool, error)
- func (h Handler) Mkdir(name string, perm os.FileMode) error
- func (h Handler) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
- func (h Handler) Stat(name string) (os.FileInfo, error)
- type MockfileSystem
- func (m *MockfileSystem) Chdir(dir string) error
- func (m *MockfileSystem) EXPECT() *MockfileSystemMockRecorder
- func (m *MockfileSystem) Getwd() (string, error)
- func (m *MockfileSystem) IsNotExist(err error) bool
- func (m *MockfileSystem) Match(pattern string, b []byte) (bool, error)
- func (m *MockfileSystem) Mkdir(name string, perm os.FileMode) error
- func (m *MockfileSystem) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
- func (m *MockfileSystem) Stat(name string) (os.FileInfo, error)
- type MockfileSystemMockRecorder
- func (mr *MockfileSystemMockRecorder) Chdir(dir interface{}) *gomock.Call
- func (mr *MockfileSystemMockRecorder) Getwd() *gomock.Call
- func (mr *MockfileSystemMockRecorder) IsNotExist(err interface{}) *gomock.Call
- func (mr *MockfileSystemMockRecorder) Match(pattern, b interface{}) *gomock.Call
- func (mr *MockfileSystemMockRecorder) Mkdir(name, perm interface{}) *gomock.Call
- func (mr *MockfileSystemMockRecorder) OpenFile(name, flag, perm interface{}) *gomock.Call
- func (mr *MockfileSystemMockRecorder) Stat(name interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct{}
func (Handler) Help ¶
Help returns a formatted string containing usage instructions, flags, examples and a description
func (Handler) IsNotExist ¶
IsNotExist returns a boolean indicating whether the error is known to report that a file or directory does not exist
func (Handler) Match ¶
Match reports whether the byte slice b contains any match of the regular expression pattern
func (Handler) Mkdir ¶
Mkdir creates a new directory with the specified name and permission bits (before umask)
type MockfileSystem ¶
type MockfileSystem struct {
// contains filtered or unexported fields
}
MockfileSystem is a mock of fileSystem interface
func NewMockfileSystem ¶
func NewMockfileSystem(ctrl *gomock.Controller) *MockfileSystem
NewMockfileSystem creates a new mock instance
func (*MockfileSystem) Chdir ¶
func (m *MockfileSystem) Chdir(dir string) error
Chdir mocks base method
func (*MockfileSystem) EXPECT ¶
func (m *MockfileSystem) EXPECT() *MockfileSystemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockfileSystem) Getwd ¶
func (m *MockfileSystem) Getwd() (string, error)
Getwd mocks base method
func (*MockfileSystem) IsNotExist ¶
func (m *MockfileSystem) IsNotExist(err error) bool
IsNotExist mocks base method
func (*MockfileSystem) Match ¶
func (m *MockfileSystem) Match(pattern string, b []byte) (bool, error)
Match mocks base method
func (*MockfileSystem) Mkdir ¶
func (m *MockfileSystem) Mkdir(name string, perm os.FileMode) error
Mkdir mocks base method
type MockfileSystemMockRecorder ¶
type MockfileSystemMockRecorder struct {
// contains filtered or unexported fields
}
MockfileSystemMockRecorder is the mock recorder for MockfileSystem
func (*MockfileSystemMockRecorder) Chdir ¶
func (mr *MockfileSystemMockRecorder) Chdir(dir interface{}) *gomock.Call
Chdir indicates an expected call of Chdir
func (*MockfileSystemMockRecorder) Getwd ¶
func (mr *MockfileSystemMockRecorder) Getwd() *gomock.Call
Getwd indicates an expected call of Getwd
func (*MockfileSystemMockRecorder) IsNotExist ¶
func (mr *MockfileSystemMockRecorder) IsNotExist(err interface{}) *gomock.Call
IsNotExist indicates an expected call of IsNotExist
func (*MockfileSystemMockRecorder) Match ¶
func (mr *MockfileSystemMockRecorder) Match(pattern, b interface{}) *gomock.Call
Match indicates an expected call of Match
func (*MockfileSystemMockRecorder) Mkdir ¶
func (mr *MockfileSystemMockRecorder) Mkdir(name, perm interface{}) *gomock.Call
Mkdir indicates an expected call of Mkdir
func (*MockfileSystemMockRecorder) OpenFile ¶
func (mr *MockfileSystemMockRecorder) OpenFile(name, flag, perm interface{}) *gomock.Call
OpenFile indicates an expected call of OpenFile
func (*MockfileSystemMockRecorder) Stat ¶
func (mr *MockfileSystemMockRecorder) Stat(name interface{}) *gomock.Call
Stat indicates an expected call of Stat