mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

Mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

func (*MockClient) Delete

func (_m *MockClient) Delete(url string) ([]byte, int, error)

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *_MockClientRecorder

func (*MockClient) Get

func (_m *MockClient) Get(url string) ([]byte, int, error)

func (*MockClient) Post

func (_m *MockClient) Post(url string, body map[string]interface{}) ([]byte, int, error)

func (*MockClient) Put

func (_m *MockClient) Put(url string, body map[string]interface{}) ([]byte, int, error)

type MockFileSystem

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

Mock of FileSystem interface

func NewMockFileSystem

func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem

func (*MockFileSystem) Create

func (_m *MockFileSystem) Create(name string) (afero.File, error)

func (*MockFileSystem) EXPECT

func (_m *MockFileSystem) EXPECT() *_MockFileSystemRecorder

func (*MockFileSystem) IsNotExist

func (_m *MockFileSystem) IsNotExist(err error) bool

func (*MockFileSystem) MkdirAll

func (_m *MockFileSystem) MkdirAll(path string, perm os.FileMode) error

func (*MockFileSystem) Stat

func (_m *MockFileSystem) Stat(name string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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