Documentation ¶
Overview ¶
Package mock_fswrite is a generated GoMock package.
Index ¶
- type MockWritable
- func (m *MockWritable) EXPECT() *MockWritableMockRecorder
- func (m *MockWritable) ListRecursive(_dir string) ([]string, error)
- func (m *MockWritable) MkdirAll(_path string, _perm fs.FileMode) error
- func (*MockWritable) NEW(ctrl *gomock.Controller) *MockWritable
- func (m *MockWritable) RemoveAll(_paths string) error
- func (m *MockWritable) WriteFile(_filename string, _data string, _perm fs.FileMode) error
- type MockWritableMockRecorder
- func (mr *MockWritableMockRecorder) ListRecursive(_dir interface{}) *gomock.Call
- func (mr *MockWritableMockRecorder) MkdirAll(_path interface{}, _perm interface{}) *gomock.Call
- func (mr *MockWritableMockRecorder) RemoveAll(_paths interface{}) *gomock.Call
- func (mr *MockWritableMockRecorder) WriteFile(_filename interface{}, _data interface{}, _perm interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWritable ¶
type MockWritable struct {
// contains filtered or unexported fields
}
MockWritable is a mock of the Writable interface in github.com/JosiahWitt/ensure/cmd/ensure/internal/fswrite.
func NewMockWritable ¶
func NewMockWritable(ctrl *gomock.Controller) *MockWritable
NewMockWritable creates a new mock instance.
func (*MockWritable) EXPECT ¶
func (m *MockWritable) EXPECT() *MockWritableMockRecorder
EXPECT returns a struct that allows setting up expectations.
func (*MockWritable) ListRecursive ¶
func (m *MockWritable) ListRecursive(_dir string) ([]string, error)
ListRecursive mocks ListRecursive on Writable.
func (*MockWritable) MkdirAll ¶
func (m *MockWritable) MkdirAll(_path string, _perm fs.FileMode) error
MkdirAll mocks MkdirAll on Writable.
func (*MockWritable) NEW ¶
func (*MockWritable) NEW(ctrl *gomock.Controller) *MockWritable
NEW creates a MockWritable. This method is used internally by ensure.
func (*MockWritable) RemoveAll ¶
func (m *MockWritable) RemoveAll(_paths string) error
RemoveAll mocks RemoveAll on Writable.
type MockWritableMockRecorder ¶
type MockWritableMockRecorder struct {
// contains filtered or unexported fields
}
MockWritableMockRecorder is the mock recorder for MockWritable.
func (*MockWritableMockRecorder) ListRecursive ¶
func (mr *MockWritableMockRecorder) ListRecursive(_dir interface{}) *gomock.Call
ListRecursive sets up expectations for calls to ListRecursive. Calling this method multiple times allows expecting multiple calls to ListRecursive with a variety of parameters.
Inputs:
dir string
Outputs:
[]string error
func (*MockWritableMockRecorder) MkdirAll ¶
func (mr *MockWritableMockRecorder) MkdirAll(_path interface{}, _perm interface{}) *gomock.Call
MkdirAll sets up expectations for calls to MkdirAll. Calling this method multiple times allows expecting multiple calls to MkdirAll with a variety of parameters.
Inputs:
path string perm fs.FileMode
Outputs:
error
func (*MockWritableMockRecorder) RemoveAll ¶
func (mr *MockWritableMockRecorder) RemoveAll(_paths interface{}) *gomock.Call
RemoveAll sets up expectations for calls to RemoveAll. Calling this method multiple times allows expecting multiple calls to RemoveAll with a variety of parameters.
Inputs:
paths string
Outputs:
error
func (*MockWritableMockRecorder) WriteFile ¶
func (mr *MockWritableMockRecorder) WriteFile(_filename interface{}, _data interface{}, _perm interface{}) *gomock.Call
WriteFile sets up expectations for calls to WriteFile. Calling this method multiple times allows expecting multiple calls to WriteFile with a variety of parameters.
Inputs:
filename string data string perm fs.FileMode
Outputs:
error