mocks

package
v0.0.0-...-4fb5945 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	mock.Mock
}

Git is an autogenerated mock type for the Git type

func NewGit

func NewGit(t interface {
	mock.TestingT
	Cleanup(func())
}) *Git

NewGit creates a new instance of Git. 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 (*Git) CommitFromCommitNumber

func (_m *Git) CommitFromCommitNumber(ctx context.Context, commitNumber types.CommitNumber) (provider.Commit, error)

CommitFromCommitNumber provides a mock function with given fields: ctx, commitNumber

func (*Git) CommitNumberFromGitHash

func (_m *Git) CommitNumberFromGitHash(ctx context.Context, githash string) (types.CommitNumber, error)

CommitNumberFromGitHash provides a mock function with given fields: ctx, githash

func (*Git) CommitNumberFromTime

func (_m *Git) CommitNumberFromTime(ctx context.Context, t time.Time) (types.CommitNumber, error)

CommitNumberFromTime provides a mock function with given fields: ctx, t

func (*Git) CommitNumbersWhenFileChangesInCommitNumberRange

func (_m *Git) CommitNumbersWhenFileChangesInCommitNumberRange(ctx context.Context, begin types.CommitNumber, end types.CommitNumber, filename string) ([]types.CommitNumber, error)

CommitNumbersWhenFileChangesInCommitNumberRange provides a mock function with given fields: ctx, begin, end, filename

func (*Git) CommitSliceFromCommitNumberRange

func (_m *Git) CommitSliceFromCommitNumberRange(ctx context.Context, begin types.CommitNumber, end types.CommitNumber) ([]provider.Commit, error)

CommitSliceFromCommitNumberRange provides a mock function with given fields: ctx, begin, end

func (*Git) CommitSliceFromCommitNumberSlice

func (_m *Git) CommitSliceFromCommitNumberSlice(ctx context.Context, commitNumberSlice []types.CommitNumber) ([]provider.Commit, error)

CommitSliceFromCommitNumberSlice provides a mock function with given fields: ctx, commitNumberSlice

func (*Git) CommitSliceFromTimeRange

func (_m *Git) CommitSliceFromTimeRange(ctx context.Context, begin time.Time, end time.Time) ([]provider.Commit, error)

CommitSliceFromTimeRange provides a mock function with given fields: ctx, begin, end

func (*Git) GetCommitNumber

func (_m *Git) GetCommitNumber(ctx context.Context, githash string, commitNumber types.CommitNumber) (types.CommitNumber, error)

GetCommitNumber provides a mock function with given fields: ctx, githash, commitNumber

func (*Git) GitHashFromCommitNumber

func (_m *Git) GitHashFromCommitNumber(ctx context.Context, commitNumber types.CommitNumber) (string, error)

GitHashFromCommitNumber provides a mock function with given fields: ctx, commitNumber

func (*Git) LogEntry

func (_m *Git) LogEntry(ctx context.Context, commit types.CommitNumber) (string, error)

LogEntry provides a mock function with given fields: ctx, commit

func (*Git) PreviousCommitNumberFromCommitNumber

func (_m *Git) PreviousCommitNumberFromCommitNumber(ctx context.Context, commitNumber types.CommitNumber) (types.CommitNumber, error)

PreviousCommitNumberFromCommitNumber provides a mock function with given fields: ctx, commitNumber

func (*Git) PreviousGitHashFromCommitNumber

func (_m *Git) PreviousGitHashFromCommitNumber(ctx context.Context, commitNumber types.CommitNumber) (string, error)

PreviousGitHashFromCommitNumber provides a mock function with given fields: ctx, commitNumber

func (*Git) RepoSuppliedCommitNumber

func (_m *Git) RepoSuppliedCommitNumber() bool

RepoSuppliedCommitNumber provides a mock function with given fields:

func (*Git) StartBackgroundPolling

func (_m *Git) StartBackgroundPolling(ctx context.Context, duration time.Duration)

StartBackgroundPolling provides a mock function with given fields: ctx, duration

func (*Git) Update

func (_m *Git) Update(ctx context.Context) error

Update provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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