github.com/quay/claircore@v1.5.28/test/mock/updater/mocks.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/quay/claircore/updater (interfaces: Store)
     3  
     4  // Package mock_updater is a generated GoMock package.
     5  package mock_updater
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	uuid "github.com/google/uuid"
    13  	driver "github.com/quay/claircore/updater/driver/v1"
    14  )
    15  
    16  // MockStore is a mock of Store interface.
    17  type MockStore struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockStoreMockRecorder
    20  }
    21  
    22  // MockStoreMockRecorder is the mock recorder for MockStore.
    23  type MockStoreMockRecorder struct {
    24  	mock *MockStore
    25  }
    26  
    27  // NewMockStore creates a new mock instance.
    28  func NewMockStore(ctrl *gomock.Controller) *MockStore {
    29  	mock := &MockStore{ctrl: ctrl}
    30  	mock.recorder = &MockStoreMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockStore) EXPECT() *MockStoreMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // GetLatestUpdateOperations mocks base method.
    40  func (m *MockStore) GetLatestUpdateOperations(arg0 context.Context) ([]driver.UpdateOperation, error) {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "GetLatestUpdateOperations", arg0)
    43  	ret0, _ := ret[0].([]driver.UpdateOperation)
    44  	ret1, _ := ret[1].(error)
    45  	return ret0, ret1
    46  }
    47  
    48  // GetLatestUpdateOperations indicates an expected call of GetLatestUpdateOperations.
    49  func (mr *MockStoreMockRecorder) GetLatestUpdateOperations(arg0 interface{}) *gomock.Call {
    50  	mr.mock.ctrl.T.Helper()
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestUpdateOperations", reflect.TypeOf((*MockStore)(nil).GetLatestUpdateOperations), arg0)
    52  }
    53  
    54  // UpdateEnrichments mocks base method.
    55  func (m *MockStore) UpdateEnrichments(arg0 context.Context, arg1 uuid.UUID, arg2 string, arg3 driver.Fingerprint, arg4 []driver.EnrichmentRecord) error {
    56  	m.ctrl.T.Helper()
    57  	ret := m.ctrl.Call(m, "UpdateEnrichments", arg0, arg1, arg2, arg3, arg4)
    58  	ret0, _ := ret[0].(error)
    59  	return ret0
    60  }
    61  
    62  // UpdateEnrichments indicates an expected call of UpdateEnrichments.
    63  func (mr *MockStoreMockRecorder) UpdateEnrichments(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEnrichments", reflect.TypeOf((*MockStore)(nil).UpdateEnrichments), arg0, arg1, arg2, arg3, arg4)
    66  }
    67  
    68  // UpdateVulnerabilities mocks base method.
    69  func (m *MockStore) UpdateVulnerabilities(arg0 context.Context, arg1 uuid.UUID, arg2 string, arg3 driver.Fingerprint, arg4 *driver.ParsedVulnerabilities) error {
    70  	m.ctrl.T.Helper()
    71  	ret := m.ctrl.Call(m, "UpdateVulnerabilities", arg0, arg1, arg2, arg3, arg4)
    72  	ret0, _ := ret[0].(error)
    73  	return ret0
    74  }
    75  
    76  // UpdateVulnerabilities indicates an expected call of UpdateVulnerabilities.
    77  func (mr *MockStoreMockRecorder) UpdateVulnerabilities(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVulnerabilities", reflect.TypeOf((*MockStore)(nil).UpdateVulnerabilities), arg0, arg1, arg2, arg3, arg4)
    80  }