github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/shared/sharedtest/test_run_query_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/web-platform-tests/wpt.fyi/shared (interfaces: TestRunQuery)
     3  
     4  // Package sharedtest is a generated GoMock package.
     5  package sharedtest
     6  
     7  import (
     8  	reflect "reflect"
     9  	time "time"
    10  
    11  	mapset "github.com/deckarep/golang-set"
    12  	gomock "github.com/golang/mock/gomock"
    13  	shared "github.com/web-platform-tests/wpt.fyi/shared"
    14  )
    15  
    16  // MockTestRunQuery is a mock of TestRunQuery interface.
    17  type MockTestRunQuery struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockTestRunQueryMockRecorder
    20  }
    21  
    22  // MockTestRunQueryMockRecorder is the mock recorder for MockTestRunQuery.
    23  type MockTestRunQueryMockRecorder struct {
    24  	mock *MockTestRunQuery
    25  }
    26  
    27  // NewMockTestRunQuery creates a new mock instance.
    28  func NewMockTestRunQuery(ctrl *gomock.Controller) *MockTestRunQuery {
    29  	mock := &MockTestRunQuery{ctrl: ctrl}
    30  	mock.recorder = &MockTestRunQueryMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockTestRunQuery) EXPECT() *MockTestRunQueryMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // GetAlignedRunSHAs mocks base method.
    40  func (m *MockTestRunQuery) GetAlignedRunSHAs(arg0 shared.ProductSpecs, arg1 mapset.Set, arg2, arg3 *time.Time, arg4, arg5 *int) ([]string, map[string]shared.KeysByProduct, error) {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "GetAlignedRunSHAs", arg0, arg1, arg2, arg3, arg4, arg5)
    43  	ret0, _ := ret[0].([]string)
    44  	ret1, _ := ret[1].(map[string]shared.KeysByProduct)
    45  	ret2, _ := ret[2].(error)
    46  	return ret0, ret1, ret2
    47  }
    48  
    49  // GetAlignedRunSHAs indicates an expected call of GetAlignedRunSHAs.
    50  func (mr *MockTestRunQueryMockRecorder) GetAlignedRunSHAs(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlignedRunSHAs", reflect.TypeOf((*MockTestRunQuery)(nil).GetAlignedRunSHAs), arg0, arg1, arg2, arg3, arg4, arg5)
    53  }
    54  
    55  // LoadTestRunKeys mocks base method.
    56  func (m *MockTestRunQuery) LoadTestRunKeys(arg0 []shared.ProductSpec, arg1 mapset.Set, arg2 []string, arg3, arg4 *time.Time, arg5, arg6 *int) (shared.KeysByProduct, error) {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "LoadTestRunKeys", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
    59  	ret0, _ := ret[0].(shared.KeysByProduct)
    60  	ret1, _ := ret[1].(error)
    61  	return ret0, ret1
    62  }
    63  
    64  // LoadTestRunKeys indicates an expected call of LoadTestRunKeys.
    65  func (mr *MockTestRunQueryMockRecorder) LoadTestRunKeys(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTestRunKeys", reflect.TypeOf((*MockTestRunQuery)(nil).LoadTestRunKeys), arg0, arg1, arg2, arg3, arg4, arg5, arg6)
    68  }
    69  
    70  // LoadTestRuns mocks base method.
    71  func (m *MockTestRunQuery) LoadTestRuns(arg0 []shared.ProductSpec, arg1 mapset.Set, arg2 []string, arg3, arg4 *time.Time, arg5, arg6 *int) (shared.TestRunsByProduct, error) {
    72  	m.ctrl.T.Helper()
    73  	ret := m.ctrl.Call(m, "LoadTestRuns", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
    74  	ret0, _ := ret[0].(shared.TestRunsByProduct)
    75  	ret1, _ := ret[1].(error)
    76  	return ret0, ret1
    77  }
    78  
    79  // LoadTestRuns indicates an expected call of LoadTestRuns.
    80  func (mr *MockTestRunQueryMockRecorder) LoadTestRuns(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTestRuns", reflect.TypeOf((*MockTestRunQuery)(nil).LoadTestRuns), arg0, arg1, arg2, arg3, arg4, arg5, arg6)
    83  }
    84  
    85  // LoadTestRunsByKeys mocks base method.
    86  func (m *MockTestRunQuery) LoadTestRunsByKeys(arg0 shared.KeysByProduct) (shared.TestRunsByProduct, error) {
    87  	m.ctrl.T.Helper()
    88  	ret := m.ctrl.Call(m, "LoadTestRunsByKeys", arg0)
    89  	ret0, _ := ret[0].(shared.TestRunsByProduct)
    90  	ret1, _ := ret[1].(error)
    91  	return ret0, ret1
    92  }
    93  
    94  // LoadTestRunsByKeys indicates an expected call of LoadTestRunsByKeys.
    95  func (mr *MockTestRunQueryMockRecorder) LoadTestRunsByKeys(arg0 interface{}) *gomock.Call {
    96  	mr.mock.ctrl.T.Helper()
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTestRunsByKeys", reflect.TypeOf((*MockTestRunQuery)(nil).LoadTestRunsByKeys), arg0)
    98  }