mock_dependencies

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFS

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

Mock of FS interface

func NewMockFS

func NewMockFS(ctrl *gomock.Controller) *MockFS

func (*MockFS) EXPECT

func (_m *MockFS) EXPECT() *_MockFSRecorder

func (*MockFS) IsNotExist

func (_m *MockFS) IsNotExist(_param0 error) bool

func (*MockFS) Open

func (_m *MockFS) Open(_param0 string) (dependencies.File, error)

func (*MockFS) ReadAll

func (_m *MockFS) ReadAll(_param0 dependencies.File) ([]byte, error)

func (*MockFS) Remove

func (_m *MockFS) Remove(_param0 string) error

func (*MockFS) TempFile

func (_m *MockFS) TempFile(_param0 string, _param1 string) (dependencies.File, error)

type MockFile

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

Mock of File interface

func NewMockFile

func NewMockFile(ctrl *gomock.Controller) *MockFile

func (*MockFile) Close

func (_m *MockFile) Close() error

func (*MockFile) EXPECT

func (_m *MockFile) EXPECT() *_MockFileRecorder

func (*MockFile) Name

func (_m *MockFile) Name() string

func (*MockFile) Sync

func (_m *MockFile) Sync() error

func (*MockFile) Write

func (_m *MockFile) Write(_param0 []byte) (int, error)

type MockRegistryKey

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

Mock of RegistryKey interface

func NewMockRegistryKey

func NewMockRegistryKey(ctrl *gomock.Controller) *MockRegistryKey

func (*MockRegistryKey) Close

func (_m *MockRegistryKey) Close() error

func (*MockRegistryKey) EXPECT

func (_m *MockRegistryKey) EXPECT() *_MockRegistryKeyRecorder

func (*MockRegistryKey) GetStringValue

func (_m *MockRegistryKey) GetStringValue(_param0 string) (string, uint32, error)

func (*MockRegistryKey) SetStringValue

func (_m *MockRegistryKey) SetStringValue(_param0 string, _param1 string) error

type MockWindowsRegistry

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

Mock of WindowsRegistry interface

func NewMockWindowsRegistry

func NewMockWindowsRegistry(ctrl *gomock.Controller) *MockWindowsRegistry

func (*MockWindowsRegistry) CreateKey

func (_m *MockWindowsRegistry) CreateKey(_param0 registry.Key, _param1 string, _param2 uint32) (dependencies.RegistryKey, bool, error)

func (*MockWindowsRegistry) EXPECT

func (_m *MockWindowsRegistry) EXPECT() *_MockWindowsRegistryRecorder

func (*MockWindowsRegistry) OpenKey

func (_m *MockWindowsRegistry) OpenKey(_param0 registry.Key, _param1 string, _param2 uint32) (dependencies.RegistryKey, error)

Jump to

Keyboard shortcuts

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