mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitInterface

type GitInterface struct {
	mock.Mock
}

GitInterface is an autogenerated mock type for the GitInterface type

func NewGitInterface

func NewGitInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitInterface

NewGitInterface creates a new instance of GitInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GitInterface) BranchName

func (_m *GitInterface) BranchName(issueID int) string

BranchName provides a mock function with given fields: issueID

func (*GitInterface) CheckoutBranch

func (_m *GitInterface) CheckoutBranch(name string) error

CheckoutBranch provides a mock function with given fields: name

func (*GitInterface) DeleteBranch

func (_m *GitInterface) DeleteBranch(_a0 string) error

DeleteBranch provides a mock function with given fields: _a0

func (*GitInterface) ExecCheckoutBranch added in v0.9.1

func (_m *GitInterface) ExecCheckoutBranch(name string) error

ExecCheckoutBranch provides a mock function with given fields: name

func (*GitInterface) GetAffectedFiles

func (_m *GitInterface) GetAffectedFiles(sha string) ([]string, error)

GetAffectedFiles provides a mock function with given fields: sha

func (*GitInterface) GetLastCommitHash

func (_m *GitInterface) GetLastCommitHash() (string, error)

GetLastCommitHash provides a mock function with no fields

func (*GitInterface) GetLastCommits

func (_m *GitInterface) GetLastCommits(count int) ([]string, error)

GetLastCommits provides a mock function with given fields: count

func (*GitInterface) GetPath

func (_m *GitInterface) GetPath() string

GetPath provides a mock function with no fields

func (*GitInterface) Reload

func (_m *GitInterface) Reload()

Reload provides a mock function with no fields

func (*GitInterface) SetPath

func (_m *GitInterface) SetPath(path string)

SetPath provides a mock function with given fields: path

Jump to

Keyboard shortcuts

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