testutil

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertError

func AssertError(t *testing.T, wantError bool, got, want error) bool

AssertError -

func DammyContext

func DammyContext() *core.Context

DammyContext -

func Diff

func Diff(t *testing.T, got, want interface{})

Diff -

func DiffUnex

func DiffUnex(t *testing.T, got, want interface{})

DiffUnex diff unexported struct.

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) Put

func (m *MockBackend) Put(arg0 *core.PutInput) (*core.PutOutput, error)

Put 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) Confirm

func (m *MockConfirmer) Confirm(arg0 string, arg1 core.Resources) (bool, error)

Confirm mocks base method

func (*MockConfirmer) EXPECT

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

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

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

type Resource

type Resource struct {
	FakeType    core.ResourceType
	FakeURI     string
	FakeContent string
}

Resource

func (*Resource) Open

func (r *Resource) Open() (io.ReadCloser, error)

Open -

func (*Resource) Type

func (r *Resource) Type() core.ResourceType

Type -

func (*Resource) URI

func (r *Resource) URI() string

URI -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL