Documentation ¶
Overview ¶
Package testutil is a generated GoMock package.
Package testutil is a generated GoMock package.
Package testutil is a generated GoMock package.
Index ¶
- func AssertError(t *testing.T, wantError bool, got, want error) bool
- func DammyContext() *core.Context
- func Diff(t *testing.T, got, want interface{})
- func DiffUnex(t *testing.T, got, want interface{})
- type MockBackend
- type MockBackendMockRecorder
- type MockConfirmer
- type MockConfirmerMockRecorder
- type MockFileOps
- type MockFileOpsMockRecorder
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertError ¶
AssertError -
Types ¶
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
MockBackend is a mock of Backend interface
func NewMockBackend ¶
func NewMockBackend(ctrl *gomock.Controller) *MockBackend
NewMockBackend creates a new mock instance
func (*MockBackend) EXPECT ¶
func (m *MockBackend) EXPECT() *MockBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBackend) Fetch ¶
func (m *MockBackend) Fetch(arg0 *core.FetchInput) (*core.FetchOutput, error)
Fetch mocks base method
func (*MockBackend) Remove ¶
func (m *MockBackend) Remove(arg0 *core.RemoveInput) (*core.RemoveOutput, error)
Remove mocks base method
type MockBackendMockRecorder ¶
type MockBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendMockRecorder is the mock recorder for MockBackend
func (*MockBackendMockRecorder) Fetch ¶
func (mr *MockBackendMockRecorder) Fetch(arg0 interface{}) *gomock.Call
Fetch indicates an expected call of Fetch
func (*MockBackendMockRecorder) Put ¶
func (mr *MockBackendMockRecorder) Put(arg0 interface{}) *gomock.Call
Put indicates an expected call of Put
func (*MockBackendMockRecorder) Remove ¶
func (mr *MockBackendMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove
type MockConfirmer ¶
type MockConfirmer struct {
// contains filtered or unexported fields
}
MockConfirmer is a mock of Confirmer interface
func NewMockConfirmer ¶
func NewMockConfirmer(ctrl *gomock.Controller) *MockConfirmer
NewMockConfirmer creates a new mock instance
func (*MockConfirmer) EXPECT ¶
func (m *MockConfirmer) EXPECT() *MockConfirmerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockConfirmerMockRecorder ¶
type MockConfirmerMockRecorder struct {
// contains filtered or unexported fields
}
MockConfirmerMockRecorder is the mock recorder for MockConfirmer
func (*MockConfirmerMockRecorder) Confirm ¶
func (mr *MockConfirmerMockRecorder) Confirm(arg0, arg1 interface{}) *gomock.Call
Confirm indicates an expected call of Confirm
type MockFileOps ¶
type MockFileOps struct {
// contains filtered or unexported fields
}
MockFileOps is a mock of FileOps interface
func NewMockFileOps ¶
func NewMockFileOps(ctrl *gomock.Controller) *MockFileOps
NewMockFileOps creates a new mock instance
func (*MockFileOps) CopyLocalToRemote ¶
func (m *MockFileOps) CopyLocalToRemote(arg0 *usecase.CopyLocalToRemoteInput) (*usecase.CopyLocalToRemoteOutput, error)
CopyLocalToRemote mocks base method
func (*MockFileOps) EXPECT ¶
func (m *MockFileOps) EXPECT() *MockFileOpsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFileOps) RemoveLocal ¶
func (m *MockFileOps) RemoveLocal(arg0 *usecase.RemoveLocalInput) (*usecase.RemoveLocalOutput, error)
RemoveLocal mocks base method
type MockFileOpsMockRecorder ¶
type MockFileOpsMockRecorder struct {
// contains filtered or unexported fields
}
MockFileOpsMockRecorder is the mock recorder for MockFileOps
func (*MockFileOpsMockRecorder) CopyLocalToRemote ¶
func (mr *MockFileOpsMockRecorder) CopyLocalToRemote(arg0 interface{}) *gomock.Call
CopyLocalToRemote indicates an expected call of CopyLocalToRemote
func (*MockFileOpsMockRecorder) RemoveLocal ¶
func (mr *MockFileOpsMockRecorder) RemoveLocal(arg0 interface{}) *gomock.Call
RemoveLocal indicates an expected call of RemoveLocal