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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/quay/claircore/libvuln/driver (interfaces: Matcher)
     3  
     4  // Package mock_driver is a generated GoMock package.
     5  package mock_driver
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	claircore "github.com/quay/claircore"
    13  	driver "github.com/quay/claircore/libvuln/driver"
    14  )
    15  
    16  // MockMatcher is a mock of Matcher interface.
    17  type MockMatcher struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockMatcherMockRecorder
    20  }
    21  
    22  // MockMatcherMockRecorder is the mock recorder for MockMatcher.
    23  type MockMatcherMockRecorder struct {
    24  	mock *MockMatcher
    25  }
    26  
    27  // NewMockMatcher creates a new mock instance.
    28  func NewMockMatcher(ctrl *gomock.Controller) *MockMatcher {
    29  	mock := &MockMatcher{ctrl: ctrl}
    30  	mock.recorder = &MockMatcherMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockMatcher) EXPECT() *MockMatcherMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // Filter mocks base method.
    40  func (m *MockMatcher) Filter(arg0 *claircore.IndexRecord) bool {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "Filter", arg0)
    43  	ret0, _ := ret[0].(bool)
    44  	return ret0
    45  }
    46  
    47  // Filter indicates an expected call of Filter.
    48  func (mr *MockMatcherMockRecorder) Filter(arg0 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Filter", reflect.TypeOf((*MockMatcher)(nil).Filter), arg0)
    51  }
    52  
    53  // Name mocks base method.
    54  func (m *MockMatcher) Name() string {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "Name")
    57  	ret0, _ := ret[0].(string)
    58  	return ret0
    59  }
    60  
    61  // Name indicates an expected call of Name.
    62  func (mr *MockMatcherMockRecorder) Name() *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockMatcher)(nil).Name))
    65  }
    66  
    67  // Query mocks base method.
    68  func (m *MockMatcher) Query() []driver.MatchConstraint {
    69  	m.ctrl.T.Helper()
    70  	ret := m.ctrl.Call(m, "Query")
    71  	ret0, _ := ret[0].([]driver.MatchConstraint)
    72  	return ret0
    73  }
    74  
    75  // Query indicates an expected call of Query.
    76  func (mr *MockMatcherMockRecorder) Query() *gomock.Call {
    77  	mr.mock.ctrl.T.Helper()
    78  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockMatcher)(nil).Query))
    79  }
    80  
    81  // Vulnerable mocks base method.
    82  func (m *MockMatcher) Vulnerable(arg0 context.Context, arg1 *claircore.IndexRecord, arg2 *claircore.Vulnerability) (bool, error) {
    83  	m.ctrl.T.Helper()
    84  	ret := m.ctrl.Call(m, "Vulnerable", arg0, arg1, arg2)
    85  	ret0, _ := ret[0].(bool)
    86  	ret1, _ := ret[1].(error)
    87  	return ret0, ret1
    88  }
    89  
    90  // Vulnerable indicates an expected call of Vulnerable.
    91  func (mr *MockMatcherMockRecorder) Vulnerable(arg0, arg1, arg2 interface{}) *gomock.Call {
    92  	mr.mock.ctrl.T.Helper()
    93  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Vulnerable", reflect.TypeOf((*MockMatcher)(nil).Vulnerable), arg0, arg1, arg2)
    94  }