github.com/covergates/covergates@v0.2.2-0.20201009050117-42ef8a19fb95/mock/git_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/covergates/covergates/core (interfaces: GitRepository,Git,GitCommit)
     3  
     4  // Package mock is a generated GoMock package.
     5  package mock
     6  
     7  import (
     8  	context "context"
     9  	core "github.com/covergates/covergates/core"
    10  	gomock "github.com/golang/mock/gomock"
    11  	reflect "reflect"
    12  )
    13  
    14  // MockGitRepository is a mock of GitRepository interface
    15  type MockGitRepository struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockGitRepositoryMockRecorder
    18  }
    19  
    20  // MockGitRepositoryMockRecorder is the mock recorder for MockGitRepository
    21  type MockGitRepositoryMockRecorder struct {
    22  	mock *MockGitRepository
    23  }
    24  
    25  // NewMockGitRepository creates a new mock instance
    26  func NewMockGitRepository(ctrl *gomock.Controller) *MockGitRepository {
    27  	mock := &MockGitRepository{ctrl: ctrl}
    28  	mock.recorder = &MockGitRepositoryMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use
    33  func (m *MockGitRepository) EXPECT() *MockGitRepositoryMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Branch mocks base method
    38  func (m *MockGitRepository) Branch() string {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "Branch")
    41  	ret0, _ := ret[0].(string)
    42  	return ret0
    43  }
    44  
    45  // Branch indicates an expected call of Branch
    46  func (mr *MockGitRepositoryMockRecorder) Branch() *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Branch", reflect.TypeOf((*MockGitRepository)(nil).Branch))
    49  }
    50  
    51  // Commit mocks base method
    52  func (m *MockGitRepository) Commit(arg0 string) (core.GitCommit, error) {
    53  	m.ctrl.T.Helper()
    54  	ret := m.ctrl.Call(m, "Commit", arg0)
    55  	ret0, _ := ret[0].(core.GitCommit)
    56  	ret1, _ := ret[1].(error)
    57  	return ret0, ret1
    58  }
    59  
    60  // Commit indicates an expected call of Commit
    61  func (mr *MockGitRepositoryMockRecorder) Commit(arg0 interface{}) *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockGitRepository)(nil).Commit), arg0)
    64  }
    65  
    66  // HeadCommit mocks base method
    67  func (m *MockGitRepository) HeadCommit() string {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "HeadCommit")
    70  	ret0, _ := ret[0].(string)
    71  	return ret0
    72  }
    73  
    74  // HeadCommit indicates an expected call of HeadCommit
    75  func (mr *MockGitRepositoryMockRecorder) HeadCommit() *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeadCommit", reflect.TypeOf((*MockGitRepository)(nil).HeadCommit))
    78  }
    79  
    80  // ListAllFiles mocks base method
    81  func (m *MockGitRepository) ListAllFiles(arg0 string) ([]string, error) {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "ListAllFiles", arg0)
    84  	ret0, _ := ret[0].([]string)
    85  	ret1, _ := ret[1].(error)
    86  	return ret0, ret1
    87  }
    88  
    89  // ListAllFiles indicates an expected call of ListAllFiles
    90  func (mr *MockGitRepositoryMockRecorder) ListAllFiles(arg0 interface{}) *gomock.Call {
    91  	mr.mock.ctrl.T.Helper()
    92  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAllFiles", reflect.TypeOf((*MockGitRepository)(nil).ListAllFiles), arg0)
    93  }
    94  
    95  // Root mocks base method
    96  func (m *MockGitRepository) Root() string {
    97  	m.ctrl.T.Helper()
    98  	ret := m.ctrl.Call(m, "Root")
    99  	ret0, _ := ret[0].(string)
   100  	return ret0
   101  }
   102  
   103  // Root indicates an expected call of Root
   104  func (mr *MockGitRepositoryMockRecorder) Root() *gomock.Call {
   105  	mr.mock.ctrl.T.Helper()
   106  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Root", reflect.TypeOf((*MockGitRepository)(nil).Root))
   107  }
   108  
   109  // MockGit is a mock of Git interface
   110  type MockGit struct {
   111  	ctrl     *gomock.Controller
   112  	recorder *MockGitMockRecorder
   113  }
   114  
   115  // MockGitMockRecorder is the mock recorder for MockGit
   116  type MockGitMockRecorder struct {
   117  	mock *MockGit
   118  }
   119  
   120  // NewMockGit creates a new mock instance
   121  func NewMockGit(ctrl *gomock.Controller) *MockGit {
   122  	mock := &MockGit{ctrl: ctrl}
   123  	mock.recorder = &MockGitMockRecorder{mock}
   124  	return mock
   125  }
   126  
   127  // EXPECT returns an object that allows the caller to indicate expected use
   128  func (m *MockGit) EXPECT() *MockGitMockRecorder {
   129  	return m.recorder
   130  }
   131  
   132  // Clone mocks base method
   133  func (m *MockGit) Clone(arg0 context.Context, arg1, arg2 string) (core.GitRepository, error) {
   134  	m.ctrl.T.Helper()
   135  	ret := m.ctrl.Call(m, "Clone", arg0, arg1, arg2)
   136  	ret0, _ := ret[0].(core.GitRepository)
   137  	ret1, _ := ret[1].(error)
   138  	return ret0, ret1
   139  }
   140  
   141  // Clone indicates an expected call of Clone
   142  func (mr *MockGitMockRecorder) Clone(arg0, arg1, arg2 interface{}) *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clone", reflect.TypeOf((*MockGit)(nil).Clone), arg0, arg1, arg2)
   145  }
   146  
   147  // PlainOpen mocks base method
   148  func (m *MockGit) PlainOpen(arg0 context.Context, arg1 string) (core.GitRepository, error) {
   149  	m.ctrl.T.Helper()
   150  	ret := m.ctrl.Call(m, "PlainOpen", arg0, arg1)
   151  	ret0, _ := ret[0].(core.GitRepository)
   152  	ret1, _ := ret[1].(error)
   153  	return ret0, ret1
   154  }
   155  
   156  // PlainOpen indicates an expected call of PlainOpen
   157  func (mr *MockGitMockRecorder) PlainOpen(arg0, arg1 interface{}) *gomock.Call {
   158  	mr.mock.ctrl.T.Helper()
   159  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PlainOpen", reflect.TypeOf((*MockGit)(nil).PlainOpen), arg0, arg1)
   160  }
   161  
   162  // MockGitCommit is a mock of GitCommit interface
   163  type MockGitCommit struct {
   164  	ctrl     *gomock.Controller
   165  	recorder *MockGitCommitMockRecorder
   166  }
   167  
   168  // MockGitCommitMockRecorder is the mock recorder for MockGitCommit
   169  type MockGitCommitMockRecorder struct {
   170  	mock *MockGitCommit
   171  }
   172  
   173  // NewMockGitCommit creates a new mock instance
   174  func NewMockGitCommit(ctrl *gomock.Controller) *MockGitCommit {
   175  	mock := &MockGitCommit{ctrl: ctrl}
   176  	mock.recorder = &MockGitCommitMockRecorder{mock}
   177  	return mock
   178  }
   179  
   180  // EXPECT returns an object that allows the caller to indicate expected use
   181  func (m *MockGitCommit) EXPECT() *MockGitCommitMockRecorder {
   182  	return m.recorder
   183  }
   184  
   185  // InDefaultBranch mocks base method
   186  func (m *MockGitCommit) InDefaultBranch() bool {
   187  	m.ctrl.T.Helper()
   188  	ret := m.ctrl.Call(m, "InDefaultBranch")
   189  	ret0, _ := ret[0].(bool)
   190  	return ret0
   191  }
   192  
   193  // InDefaultBranch indicates an expected call of InDefaultBranch
   194  func (mr *MockGitCommitMockRecorder) InDefaultBranch() *gomock.Call {
   195  	mr.mock.ctrl.T.Helper()
   196  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InDefaultBranch", reflect.TypeOf((*MockGitCommit)(nil).InDefaultBranch))
   197  }