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

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