Documentation ¶
Index ¶
- type Git
- func (_m *Git) CommitFromCommitNumber(ctx context.Context, commitNumber types.CommitNumber) (provider.Commit, error)
- func (_m *Git) CommitNumberFromGitHash(ctx context.Context, githash string) (types.CommitNumber, error)
- func (_m *Git) CommitNumberFromTime(ctx context.Context, t time.Time) (types.CommitNumber, error)
- func (_m *Git) CommitNumbersWhenFileChangesInCommitNumberRange(ctx context.Context, begin types.CommitNumber, end types.CommitNumber, ...) ([]types.CommitNumber, error)
- func (_m *Git) CommitSliceFromCommitNumberRange(ctx context.Context, begin types.CommitNumber, end types.CommitNumber) ([]provider.Commit, error)
- func (_m *Git) CommitSliceFromCommitNumberSlice(ctx context.Context, commitNumberSlice []types.CommitNumber) ([]provider.Commit, error)
- func (_m *Git) CommitSliceFromTimeRange(ctx context.Context, begin time.Time, end time.Time) ([]provider.Commit, error)
- func (_m *Git) GetCommitNumber(ctx context.Context, githash string, commitNumber types.CommitNumber) (types.CommitNumber, error)
- func (_m *Git) GitHashFromCommitNumber(ctx context.Context, commitNumber types.CommitNumber) (string, error)
- func (_m *Git) LogEntry(ctx context.Context, commit types.CommitNumber) (string, error)
- func (_m *Git) PreviousCommitNumberFromCommitNumber(ctx context.Context, commitNumber types.CommitNumber) (types.CommitNumber, error)
- func (_m *Git) PreviousGitHashFromCommitNumber(ctx context.Context, commitNumber types.CommitNumber) (string, error)
- func (_m *Git) RepoSuppliedCommitNumber() bool
- func (_m *Git) StartBackgroundPolling(ctx context.Context, duration time.Duration)
- func (_m *Git) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
Git is an autogenerated mock type for the Git type
func NewGit ¶
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 ¶
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) 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 ¶
RepoSuppliedCommitNumber provides a mock function with given fields:
func (*Git) StartBackgroundPolling ¶
StartBackgroundPolling provides a mock function with given fields: ctx, duration