mock

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockReadCloser

type MockReadCloser struct {
	// contains filtered or unexported fields
}

MockReadCloser is a mock of ReadCloser interface

func NewMockReadCloser

func NewMockReadCloser(ctrl *gomock.Controller) *MockReadCloser

NewMockReadCloser creates a new mock instance

func (*MockReadCloser) Close

func (m *MockReadCloser) Close() error

Close mocks base method

func (*MockReadCloser) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockReadCloser) Read

func (m *MockReadCloser) Read(arg0 []byte) (int, error)

Read mocks base method

type MockReadCloserMockRecorder

type MockReadCloserMockRecorder struct {
	// contains filtered or unexported fields
}

MockReadCloserMockRecorder is the mock recorder for MockReadCloser

func (*MockReadCloserMockRecorder) Close

func (mr *MockReadCloserMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockReadCloserMockRecorder) Read

func (mr *MockReadCloserMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read

type MockScheduler

type MockScheduler struct {
	// contains filtered or unexported fields
}

MockScheduler is a mock of Scheduler interface

func NewMockScheduler

func NewMockScheduler(ctrl *gomock.Controller) *MockScheduler

NewMockScheduler creates a new mock instance

func (*MockScheduler) Async

func (m *MockScheduler) Async(arg0 navvy.Task)

Async mocks base method

func (*MockScheduler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockScheduler) Sync

func (m *MockScheduler) Sync(arg0 navvy.Task)

Sync mocks base method

func (*MockScheduler) Wait

func (m *MockScheduler) Wait()

Wait mocks base method

type MockSchedulerMockRecorder

type MockSchedulerMockRecorder struct {
	// contains filtered or unexported fields
}

MockSchedulerMockRecorder is the mock recorder for MockScheduler

func (*MockSchedulerMockRecorder) Async

func (mr *MockSchedulerMockRecorder) Async(arg0 interface{}) *gomock.Call

Async indicates an expected call of Async

func (*MockSchedulerMockRecorder) Sync

func (mr *MockSchedulerMockRecorder) Sync(arg0 interface{}) *gomock.Call

Sync indicates an expected call of Sync

func (*MockSchedulerMockRecorder) Wait

Wait indicates an expected call of Wait

type MockServicer

type MockServicer struct {
	// contains filtered or unexported fields
}

MockServicer is a mock of Servicer interface

func NewMockServicer

func NewMockServicer(ctrl *gomock.Controller) *MockServicer

NewMockServicer creates a new mock instance

func (*MockServicer) Create

func (m *MockServicer) Create(arg0 string, arg1 ...*types.Pair) (storage.Storager, error)

Create mocks base method

func (*MockServicer) Delete

func (m *MockServicer) Delete(arg0 string, arg1 ...*types.Pair) error

Delete mocks base method

func (*MockServicer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockServicer) Get

func (m *MockServicer) Get(arg0 string, arg1 ...*types.Pair) (storage.Storager, error)

Get mocks base method

func (*MockServicer) Init

func (m *MockServicer) Init(arg0 ...*types.Pair) error

Init mocks base method

func (*MockServicer) List

func (m *MockServicer) List(arg0 ...*types.Pair) ([]storage.Storager, error)

List mocks base method

type MockServicerMockRecorder

type MockServicerMockRecorder struct {
	// contains filtered or unexported fields
}

MockServicerMockRecorder is the mock recorder for MockServicer

func (*MockServicerMockRecorder) Create

func (mr *MockServicerMockRecorder) Create(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockServicerMockRecorder) Delete

func (mr *MockServicerMockRecorder) Delete(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockServicerMockRecorder) Get

func (mr *MockServicerMockRecorder) Get(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockServicerMockRecorder) Init

func (mr *MockServicerMockRecorder) Init(arg0 ...interface{}) *gomock.Call

Init indicates an expected call of Init

func (*MockServicerMockRecorder) List

func (mr *MockServicerMockRecorder) List(arg0 ...interface{}) *gomock.Call

List indicates an expected call of List

type MockStorager

type MockStorager struct {
	// contains filtered or unexported fields
}

MockStorager is a mock of Storager interface

func NewMockStorager

func NewMockStorager(ctrl *gomock.Controller) *MockStorager

NewMockStorager creates a new mock instance

func (*MockStorager) AbortSegment

func (m *MockStorager) AbortSegment(arg0 string, arg1 ...*types.Pair) error

AbortSegment mocks base method

func (*MockStorager) Capable

func (m *MockStorager) Capable(arg0 string, arg1 ...string) bool

Capable mocks base method

func (*MockStorager) CompleteSegment

func (m *MockStorager) CompleteSegment(arg0 string, arg1 ...*types.Pair) error

CompleteSegment mocks base method

func (*MockStorager) Copy

func (m *MockStorager) Copy(arg0, arg1 string, arg2 ...*types.Pair) error

Copy mocks base method

func (*MockStorager) Delete

func (m *MockStorager) Delete(arg0 string, arg1 ...*types.Pair) error

Delete mocks base method

func (*MockStorager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockStorager) Init

func (m *MockStorager) Init(arg0 ...*types.Pair) error

Init mocks base method

func (*MockStorager) InitSegment

func (m *MockStorager) InitSegment(arg0 string, arg1 ...*types.Pair) (string, error)

InitSegment mocks base method

func (*MockStorager) ListDir

func (m *MockStorager) ListDir(arg0 string, arg1 ...*types.Pair) iterator.ObjectIterator

ListDir mocks base method

func (*MockStorager) ListSegments

func (m *MockStorager) ListSegments(arg0 string, arg1 ...*types.Pair) iterator.SegmentIterator

ListSegments mocks base method

func (*MockStorager) Metadata

func (m *MockStorager) Metadata() (types.Metadata, error)

Metadata mocks base method

func (*MockStorager) Move

func (m *MockStorager) Move(arg0, arg1 string, arg2 ...*types.Pair) error

Move mocks base method

func (*MockStorager) Reach

func (m *MockStorager) Reach(arg0 string, arg1 ...*types.Pair) (string, error)

Reach mocks base method

func (*MockStorager) Read

func (m *MockStorager) Read(arg0 string, arg1 ...*types.Pair) (io.ReadCloser, error)

Read mocks base method

func (*MockStorager) Stat

func (m *MockStorager) Stat(arg0 string, arg1 ...*types.Pair) (*types.Object, error)

Stat mocks base method

func (*MockStorager) String

func (m *MockStorager) String() string

String mocks base method

func (*MockStorager) Write

func (m *MockStorager) Write(arg0 string, arg1 io.Reader, arg2 ...*types.Pair) error

Write mocks base method

func (*MockStorager) WriteSegment

func (m *MockStorager) WriteSegment(arg0 string, arg1, arg2 int64, arg3 io.Reader, arg4 ...*types.Pair) error

WriteSegment mocks base method

type MockStoragerMockRecorder

type MockStoragerMockRecorder struct {
	// contains filtered or unexported fields
}

MockStoragerMockRecorder is the mock recorder for MockStorager

func (*MockStoragerMockRecorder) AbortSegment

func (mr *MockStoragerMockRecorder) AbortSegment(arg0 interface{}, arg1 ...interface{}) *gomock.Call

AbortSegment indicates an expected call of AbortSegment

func (*MockStoragerMockRecorder) Capable

func (mr *MockStoragerMockRecorder) Capable(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Capable indicates an expected call of Capable

func (*MockStoragerMockRecorder) CompleteSegment

func (mr *MockStoragerMockRecorder) CompleteSegment(arg0 interface{}, arg1 ...interface{}) *gomock.Call

CompleteSegment indicates an expected call of CompleteSegment

func (*MockStoragerMockRecorder) Copy

func (mr *MockStoragerMockRecorder) Copy(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Copy indicates an expected call of Copy

func (*MockStoragerMockRecorder) Delete

func (mr *MockStoragerMockRecorder) Delete(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockStoragerMockRecorder) Init

func (mr *MockStoragerMockRecorder) Init(arg0 ...interface{}) *gomock.Call

Init indicates an expected call of Init

func (*MockStoragerMockRecorder) InitSegment

func (mr *MockStoragerMockRecorder) InitSegment(arg0 interface{}, arg1 ...interface{}) *gomock.Call

InitSegment indicates an expected call of InitSegment

func (*MockStoragerMockRecorder) ListDir

func (mr *MockStoragerMockRecorder) ListDir(arg0 interface{}, arg1 ...interface{}) *gomock.Call

ListDir indicates an expected call of ListDir

func (*MockStoragerMockRecorder) ListSegments

func (mr *MockStoragerMockRecorder) ListSegments(arg0 interface{}, arg1 ...interface{}) *gomock.Call

ListSegments indicates an expected call of ListSegments

func (*MockStoragerMockRecorder) Metadata

func (mr *MockStoragerMockRecorder) Metadata() *gomock.Call

Metadata indicates an expected call of Metadata

func (*MockStoragerMockRecorder) Move

func (mr *MockStoragerMockRecorder) Move(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Move indicates an expected call of Move

func (*MockStoragerMockRecorder) Reach

func (mr *MockStoragerMockRecorder) Reach(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Reach indicates an expected call of Reach

func (*MockStoragerMockRecorder) Read

func (mr *MockStoragerMockRecorder) Read(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockStoragerMockRecorder) Stat

func (mr *MockStoragerMockRecorder) Stat(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Stat indicates an expected call of Stat

func (*MockStoragerMockRecorder) String

func (mr *MockStoragerMockRecorder) String() *gomock.Call

String indicates an expected call of String

func (*MockStoragerMockRecorder) Write

func (mr *MockStoragerMockRecorder) Write(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Write indicates an expected call of Write

func (*MockStoragerMockRecorder) WriteSegment

func (mr *MockStoragerMockRecorder) WriteSegment(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

WriteSegment indicates an expected call of WriteSegment

Jump to

Keyboard shortcuts

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