mock

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

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 MockGitRepository

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

MockGitRepository is a mock of GitRepository interface.

func NewMockGitRepository

func NewMockGitRepository(ctrl *gomock.Controller) *MockGitRepository

NewMockGitRepository creates a new mock instance.

func (*MockGitRepository) Add

func (m *MockGitRepository) Add(patterns ...string) error

Add mocks base method.

func (*MockGitRepository) Commit

func (m *MockGitRepository) Commit(message string) error

Commit mocks base method.

func (*MockGitRepository) EXPECT

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

func (*MockGitRepository) Exists

func (m *MockGitRepository) Exists() (bool, error)

Exists mocks base method.

func (*MockGitRepository) GetWorkingDirectory

func (m *MockGitRepository) GetWorkingDirectory() string

GetWorkingDirectory mocks base method.

func (*MockGitRepository) HasRemote

func (m *MockGitRepository) HasRemote() (bool, error)

HasRemote mocks base method.

func (*MockGitRepository) Init

func (m *MockGitRepository) Init(branch string) error

Init mocks base method.

func (*MockGitRepository) Push

func (m *MockGitRepository) Push() error

Push mocks base method.

func (*MockGitRepository) PushContext

func (m *MockGitRepository) PushContext(ctx context.Context) error

PushContext mocks base method.

func (*MockGitRepository) SetRemote

func (m *MockGitRepository) SetRemote(name, url string) error

SetRemote mocks base method.

func (*MockGitRepository) Status

func (m *MockGitRepository) Status() ([]string, error)

Status mocks base method.

type MockGitRepositoryMockRecorder

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

MockGitRepositoryMockRecorder is the mock recorder for MockGitRepository.

func (*MockGitRepositoryMockRecorder) Add

func (mr *MockGitRepositoryMockRecorder) Add(patterns ...any) *gomock.Call

Add indicates an expected call of Add.

func (*MockGitRepositoryMockRecorder) Commit

func (mr *MockGitRepositoryMockRecorder) Commit(message any) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockGitRepositoryMockRecorder) Exists

Exists indicates an expected call of Exists.

func (*MockGitRepositoryMockRecorder) GetWorkingDirectory

func (mr *MockGitRepositoryMockRecorder) GetWorkingDirectory() *gomock.Call

GetWorkingDirectory indicates an expected call of GetWorkingDirectory.

func (*MockGitRepositoryMockRecorder) HasRemote

func (mr *MockGitRepositoryMockRecorder) HasRemote() *gomock.Call

HasRemote indicates an expected call of HasRemote.

func (*MockGitRepositoryMockRecorder) Init

func (mr *MockGitRepositoryMockRecorder) Init(branch any) *gomock.Call

Init indicates an expected call of Init.

func (*MockGitRepositoryMockRecorder) Push

Push indicates an expected call of Push.

func (*MockGitRepositoryMockRecorder) PushContext

func (mr *MockGitRepositoryMockRecorder) PushContext(ctx any) *gomock.Call

PushContext indicates an expected call of PushContext.

func (*MockGitRepositoryMockRecorder) SetRemote

func (mr *MockGitRepositoryMockRecorder) SetRemote(name, url any) *gomock.Call

SetRemote indicates an expected call of SetRemote.

func (*MockGitRepositoryMockRecorder) Status

Status indicates an expected call of Status.

Jump to

Keyboard shortcuts

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