mocks

package
v0.0.0-...-b945540 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VCS

type VCS struct {
	mock.Mock
}

VCS is an autogenerated mock type for the VCS type

func NewVCS

func NewVCS(t interface {
	mock.TestingT
	Cleanup(func())
}) *VCS

NewVCS creates a new instance of VCS. 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 (*VCS) ByIndex

func (_m *VCS) ByIndex(ctx context.Context, N int) (*vcsinfo.LongCommit, error)

ByIndex provides a mock function with given fields: ctx, N

func (*VCS) Details

func (_m *VCS) Details(ctx context.Context, hash string, includeBranchInfo bool) (*vcsinfo.LongCommit, error)

Details provides a mock function with given fields: ctx, hash, includeBranchInfo

func (*VCS) DetailsMulti

func (_m *VCS) DetailsMulti(ctx context.Context, hashes []string, includeBranchInfo bool) ([]*vcsinfo.LongCommit, error)

DetailsMulti provides a mock function with given fields: ctx, hashes, includeBranchInfo

func (*VCS) From

func (_m *VCS) From(start time.Time) []string

From provides a mock function with given fields: start

func (*VCS) IndexOf

func (_m *VCS) IndexOf(ctx context.Context, hash string) (int, error)

IndexOf provides a mock function with given fields: ctx, hash

func (*VCS) LastNIndex

func (_m *VCS) LastNIndex(N int) []*vcsinfo.IndexCommit

LastNIndex provides a mock function with given fields: N

func (*VCS) Range

func (_m *VCS) Range(begin time.Time, end time.Time) []*vcsinfo.IndexCommit

Range provides a mock function with given fields: begin, end

func (*VCS) Update

func (_m *VCS) Update(ctx context.Context, pull bool, allBranches bool) error

Update provides a mock function with given fields: ctx, pull, allBranches

Jump to

Keyboard shortcuts

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