summaryrefslogtreecommitdiff
path: root/ext/git/mocks/gitRefCache.go
blob: 61d712344e0fb95045544cad3bf8235f5e825f84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Code generated by mockery v1.1.2. DO NOT EDIT.

package mocks

import (
	plumbing "github.com/go-git/go-git/v5/plumbing"
	mock "github.com/stretchr/testify/mock"
)

// gitRefCache is an autogenerated mock type for the gitRefCache type
type gitRefCache struct {
	mock.Mock
}

// GetGitReferences provides a mock function with given fields: repo, references
func (_m *gitRefCache) GetGitReferences(repo string, references *[]*plumbing.Reference) error {
	ret := _m.Called(repo, references)

	var r0 error
	if rf, ok := ret.Get(0).(func(string, *[]*plumbing.Reference) error); ok {
		r0 = rf(repo, references)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// SetGitReferences provides a mock function with given fields: repo, references
func (_m *gitRefCache) SetGitReferences(repo string, references []*plumbing.Reference) error {
	ret := _m.Called(repo, references)

	var r0 error
	if rf, ok := ret.Get(0).(func(string, []*plumbing.Reference) error); ok {
		r0 = rf(repo, references)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}