Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockDatabase
- func (m *MockDatabase) Add(target string, installment *db.BinVersion, current bool) error
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) Get(target, version string) (*db.BinVersion, error)
- func (m *MockDatabase) GetCurrent(target string) (*db.BinVersion, error)
- func (m *MockDatabase) SetCurrent(target, version string) error
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) Add(target, installment, current interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Get(target, version interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetCurrent(target interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) SetCurrent(target, version interface{}) *gomock.Call
- type MockInstaller
- type MockInstallerMockRecorder
- type MockResolver
- type MockResolverMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
MockDatabase is a mock of Database interface.
func NewMockDatabase ¶
func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase
NewMockDatabase creates a new mock instance.
func (*MockDatabase) Add ¶
func (m *MockDatabase) Add(target string, installment *db.BinVersion, current bool) error
Add mocks base method.
func (*MockDatabase) EXPECT ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatabase) Get ¶
func (m *MockDatabase) Get(target, version string) (*db.BinVersion, error)
Get mocks base method.
func (*MockDatabase) GetCurrent ¶
func (m *MockDatabase) GetCurrent(target string) (*db.BinVersion, error)
GetCurrent mocks base method.
func (*MockDatabase) SetCurrent ¶
func (m *MockDatabase) SetCurrent(target, version string) error
SetCurrent mocks base method.
type MockDatabaseMockRecorder ¶
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockDatabase.
func (*MockDatabaseMockRecorder) Add ¶
func (mr *MockDatabaseMockRecorder) Add(target, installment, current interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockDatabaseMockRecorder) Get ¶
func (mr *MockDatabaseMockRecorder) Get(target, version interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockDatabaseMockRecorder) GetCurrent ¶
func (mr *MockDatabaseMockRecorder) GetCurrent(target interface{}) *gomock.Call
GetCurrent indicates an expected call of GetCurrent.
func (*MockDatabaseMockRecorder) SetCurrent ¶
func (mr *MockDatabaseMockRecorder) SetCurrent(target, version interface{}) *gomock.Call
SetCurrent indicates an expected call of SetCurrent.
type MockInstaller ¶
type MockInstaller struct {
// contains filtered or unexported fields
}
MockInstaller is a mock of Installer interface.
func NewMockInstaller ¶
func NewMockInstaller(ctrl *gomock.Controller) *MockInstaller
NewMockInstaller creates a new mock instance.
func (*MockInstaller) EXPECT ¶
func (m *MockInstaller) EXPECT() *MockInstallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstaller) Install ¶
func (m *MockInstaller) Install(constraint string)
Install mocks base method.
type MockInstallerMockRecorder ¶
type MockInstallerMockRecorder struct {
// contains filtered or unexported fields
}
MockInstallerMockRecorder is the mock recorder for MockInstaller.
func (*MockInstallerMockRecorder) Install ¶
func (mr *MockInstallerMockRecorder) Install(constraint interface{}) *gomock.Call
Install indicates an expected call of Install.
type MockResolver ¶
type MockResolver struct {
// contains filtered or unexported fields
}
MockResolver is a mock of Resolver interface.
func NewMockResolver ¶
func NewMockResolver(ctrl *gomock.Controller) *MockResolver
NewMockResolver creates a new mock instance.
func (*MockResolver) AddNewVersion ¶
func (m *MockResolver) AddNewVersion(version, destination string) error
AddNewVersion mocks base method.
func (*MockResolver) EXPECT ¶
func (m *MockResolver) EXPECT() *MockResolverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResolver) Implementation ¶ added in v0.0.9
func (m *MockResolver) Implementation() string
Implementation mocks base method.
func (*MockResolver) ListVersions ¶
func (m *MockResolver) ListVersions() ([]string, error)
ListVersions mocks base method.
type MockResolverMockRecorder ¶
type MockResolverMockRecorder struct {
// contains filtered or unexported fields
}
MockResolverMockRecorder is the mock recorder for MockResolver.
func (*MockResolverMockRecorder) AddNewVersion ¶
func (mr *MockResolverMockRecorder) AddNewVersion(version, destination interface{}) *gomock.Call
AddNewVersion indicates an expected call of AddNewVersion.
func (*MockResolverMockRecorder) Implementation ¶ added in v0.0.9
func (mr *MockResolverMockRecorder) Implementation() *gomock.Call
Implementation indicates an expected call of Implementation.
func (*MockResolverMockRecorder) ListVersions ¶
func (mr *MockResolverMockRecorder) ListVersions() *gomock.Call
ListVersions indicates an expected call of ListVersions.
func (*MockResolverMockRecorder) Name ¶
func (mr *MockResolverMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.