Documentation ¶
Index ¶
- type GitStore
- func (_m *GitStore) Get(ctx context.Context, hashes []string) ([]*vcsinfo.LongCommit, error)
- func (_m *GitStore) GetBranches(ctx context.Context) (map[string]*gitstore.BranchPointer, error)
- func (_m *GitStore) Put(ctx context.Context, commits []*vcsinfo.LongCommit) error
- func (_m *GitStore) PutBranches(ctx context.Context, branches map[string]string) error
- func (_m *GitStore) RangeByTime(ctx context.Context, start time.Time, end time.Time, branch string) ([]*vcsinfo.IndexCommit, error)
- func (_m *GitStore) RangeN(ctx context.Context, startIndex int, endIndex int, branch string) ([]*vcsinfo.IndexCommit, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitStore ¶
GitStore is an autogenerated mock type for the GitStore type
func NewGitStore ¶
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) GetBranches ¶
GetBranches provides a mock function with given fields: ctx
func (*GitStore) PutBranches ¶
PutBranches provides a mock function with given fields: ctx, branches
Click to show internal directories.
Click to hide internal directories.