/
mock_factory.go
70 lines (58 loc) · 2.29 KB
/
mock_factory.go
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Copyright (C) 2019-2022, Lux Partners Limited. All rights reserved.
// See the file LICENSE for licensing terms.
//
// Code generated by MockGen. DO NOT EDIT.
// Source: git/factory.go
// Package git is a generated GoMock package.
package git
import (
reflect "reflect"
plumbing "github.com/go-git/go-git/v5/plumbing"
http "github.com/go-git/go-git/v5/plumbing/transport/http"
gomock "github.com/golang/mock/gomock"
)
// MockFactory is a mock of Factory interface.
type MockFactory struct {
ctrl *gomock.Controller
recorder *MockFactoryMockRecorder
}
// MockFactoryMockRecorder is the mock recorder for MockFactory.
type MockFactoryMockRecorder struct {
mock *MockFactory
}
// NewMockFactory creates a new mock instance.
func NewMockFactory(ctrl *gomock.Controller) *MockFactory {
mock := &MockFactory{ctrl: ctrl}
mock.recorder = &MockFactoryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder {
return m.recorder
}
// GetLastModified mocks base method.
func (m *MockFactory) GetLastModified(repoPath, filePath string) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLastModified", repoPath, filePath)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetLastModified indicates an expected call of GetLastModified.
func (mr *MockFactoryMockRecorder) GetLastModified(repoPath, filePath interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastModified", reflect.TypeOf((*MockFactory)(nil).GetLastModified), repoPath, filePath)
}
// GetRepository mocks base method.
func (m *MockFactory) GetRepository(url, path string, reference plumbing.ReferenceName, auth *http.BasicAuth) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRepository", url, path, reference, auth)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRepository indicates an expected call of GetRepository.
func (mr *MockFactoryMockRecorder) GetRepository(url, path, reference, auth interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRepository", reflect.TypeOf((*MockFactory)(nil).GetRepository), url, path, reference, auth)
}