mock

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_selfupdate is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUpdaterIn

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

MockUpdaterIn is a mock of UpdaterIn interface.

func NewMockUpdaterIn

func NewMockUpdaterIn(ctrl *gomock.Controller) *MockUpdaterIn

NewMockUpdaterIn creates a new mock instance.

func (*MockUpdaterIn) DetectLatest

func (m *MockUpdaterIn) DetectLatest(slug string) (*selfupdate.Release, bool, error)

DetectLatest mocks base method.

func (*MockUpdaterIn) DetectVersion

func (m *MockUpdaterIn) DetectVersion(slug, version string) (*selfupdate.Release, bool, error)

DetectVersion mocks base method.

func (*MockUpdaterIn) EXPECT

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

func (*MockUpdaterIn) UpdateCommand

func (m *MockUpdaterIn) UpdateCommand(cmdPath string, current semver.Version, slug string) (*selfupdate.Release, error)

UpdateCommand mocks base method.

func (*MockUpdaterIn) UpdateSelf

func (m *MockUpdaterIn) UpdateSelf(current semver.Version, slug string) (*selfupdate.Release, error)

UpdateSelf mocks base method.

func (*MockUpdaterIn) UpdateTo

func (m *MockUpdaterIn) UpdateTo(rel *selfupdate.Release, cmdPath string) error

UpdateTo mocks base method.

type MockUpdaterInMockRecorder

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

MockUpdaterInMockRecorder is the mock recorder for MockUpdaterIn.

func (*MockUpdaterInMockRecorder) DetectLatest

func (mr *MockUpdaterInMockRecorder) DetectLatest(slug interface{}) *gomock.Call

DetectLatest indicates an expected call of DetectLatest.

func (*MockUpdaterInMockRecorder) DetectVersion

func (mr *MockUpdaterInMockRecorder) DetectVersion(slug, version interface{}) *gomock.Call

DetectVersion indicates an expected call of DetectVersion.

func (*MockUpdaterInMockRecorder) UpdateCommand

func (mr *MockUpdaterInMockRecorder) UpdateCommand(cmdPath, current, slug interface{}) *gomock.Call

UpdateCommand indicates an expected call of UpdateCommand.

func (*MockUpdaterInMockRecorder) UpdateSelf

func (mr *MockUpdaterInMockRecorder) UpdateSelf(current, slug interface{}) *gomock.Call

UpdateSelf indicates an expected call of UpdateSelf.

func (*MockUpdaterInMockRecorder) UpdateTo

func (mr *MockUpdaterInMockRecorder) UpdateTo(rel, cmdPath interface{}) *gomock.Call

UpdateTo indicates an expected call of UpdateTo.

Jump to

Keyboard shortcuts

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