summaryrefslogtreecommitdiff
path: root/ext/git/mocks/gitRefCache.go
diff options
context:
space:
mode:
authorjannfis <jann@mistrust.net>2021-10-26 22:43:34 +0200
committerGitHub <noreply@github.com>2021-10-26 22:43:34 +0200
commita03f31915d71ae39f1c9ac5d7d4d1501d11d158b (patch)
treec9a87b7da7d4505e18b7bdc2344ef011e8fc037c /ext/git/mocks/gitRefCache.go
parentb4f28e8f48d38559b23453e1e913f6bb3361fc25 (diff)
chore: Update and refactor Git client (#283)
Signed-off-by: jannfis <jann@mistrust.net>
Diffstat (limited to 'ext/git/mocks/gitRefCache.go')
-rw-r--r--ext/git/mocks/gitRefCache.go41
1 files changed, 41 insertions, 0 deletions
diff --git a/ext/git/mocks/gitRefCache.go b/ext/git/mocks/gitRefCache.go
new file mode 100644
index 0000000..61d7123
--- /dev/null
+++ b/ext/git/mocks/gitRefCache.go
@@ -0,0 +1,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
+}