mocks

package
v0.0.0-...-e764a6b Latest Latest
Warning

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

Go to latest
Published: Dec 17, 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 GitStore

type GitStore struct {
	mock.Mock
}

GitStore is an autogenerated mock type for the GitStore type

func NewGitStore

func NewGitStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitStore

NewGitStore creates a new instance of GitStore. 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 (*GitStore) Get

func (_m *GitStore) Get(ctx context.Context, hashes []string) ([]*vcsinfo.LongCommit, error)

Get provides a mock function with given fields: ctx, hashes

func (*GitStore) GetBranches

func (_m *GitStore) GetBranches(ctx context.Context) (map[string]*gitstore.BranchPointer, error)

GetBranches provides a mock function with given fields: ctx

func (*GitStore) Put

func (_m *GitStore) Put(ctx context.Context, commits []*vcsinfo.LongCommit) error

Put provides a mock function with given fields: ctx, commits

func (*GitStore) PutBranches

func (_m *GitStore) PutBranches(ctx context.Context, branches map[string]string) error

PutBranches provides a mock function with given fields: ctx, branches

func (*GitStore) RangeByTime

func (_m *GitStore) RangeByTime(ctx context.Context, start time.Time, end time.Time, branch string) ([]*vcsinfo.IndexCommit, error)

RangeByTime provides a mock function with given fields: ctx, start, end, branch

func (*GitStore) RangeN

func (_m *GitStore) RangeN(ctx context.Context, startIndex int, endIndex int, branch string) ([]*vcsinfo.IndexCommit, error)

RangeN provides a mock function with given fields: ctx, startIndex, endIndex, branch

Jump to

Keyboard shortcuts

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