Documentation ¶
Index ¶
- type QuerierMock
- func (mock *QuerierMock) BulkInsertIntoBatchRows(ctx context.Context, arg batchsqlc.BulkInsertIntoBatchRowsParams) (int64, error)
- func (mock *QuerierMock) BulkInsertIntoBatchRowsCalls() []struct{ ... }
- func (mock *QuerierMock) CountBatchRowsByBatchIDAndStatus(ctx context.Context, arg batchsqlc.CountBatchRowsByBatchIDAndStatusParams) (int64, error)
- func (mock *QuerierMock) CountBatchRowsByBatchIDAndStatusCalls() []struct{ ... }
- func (mock *QuerierMock) FetchBatchRowsForBatchDone(ctx context.Context, batch uuid.UUID) ([]batchsqlc.FetchBatchRowsForBatchDoneRow, error)
- func (mock *QuerierMock) FetchBatchRowsForBatchDoneCalls() []struct{ ... }
- func (mock *QuerierMock) FetchBlockOfRows(ctx context.Context, arg batchsqlc.FetchBlockOfRowsParams) ([]batchsqlc.FetchBlockOfRowsRow, error)
- func (mock *QuerierMock) FetchBlockOfRowsCalls() []struct{ ... }
- func (mock *QuerierMock) GetBatchByID(ctx context.Context, id uuid.UUID) (batchsqlc.Batch, error)
- func (mock *QuerierMock) GetBatchByIDCalls() []struct{ ... }
- func (mock *QuerierMock) GetBatchRowsByBatchID(ctx context.Context, batch uuid.UUID) ([]batchsqlc.Batchrow, error)
- func (mock *QuerierMock) GetBatchRowsByBatchIDCalls() []struct{ ... }
- func (mock *QuerierMock) GetBatchRowsByBatchIDSorted(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetBatchRowsByBatchIDSortedRow, error)
- func (mock *QuerierMock) GetBatchRowsByBatchIDSortedCalls() []struct{ ... }
- func (mock *QuerierMock) GetBatchRowsCount(ctx context.Context, batch uuid.UUID) (int64, error)
- func (mock *QuerierMock) GetBatchRowsCountCalls() []struct{ ... }
- func (mock *QuerierMock) GetBatchStatus(ctx context.Context, id uuid.UUID) (batchsqlc.StatusEnum, error)
- func (mock *QuerierMock) GetBatchStatusAndOutputFiles(ctx context.Context, id uuid.UUID) (batchsqlc.GetBatchStatusAndOutputFilesRow, error)
- func (mock *QuerierMock) GetBatchStatusAndOutputFilesCalls() []struct{ ... }
- func (mock *QuerierMock) GetBatchStatusCalls() []struct{ ... }
- func (mock *QuerierMock) GetCompletedBatches(ctx context.Context) ([]uuid.UUID, error)
- func (mock *QuerierMock) GetCompletedBatchesCalls() []struct{ ... }
- func (mock *QuerierMock) GetPendingBatchRows(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetPendingBatchRowsRow, error)
- func (mock *QuerierMock) GetPendingBatchRowsCalls() []struct{ ... }
- func (mock *QuerierMock) GetProcessedBatchRowsByBatchIDSorted(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetProcessedBatchRowsByBatchIDSortedRow, error)
- func (mock *QuerierMock) GetProcessedBatchRowsByBatchIDSortedCalls() []struct{ ... }
- func (mock *QuerierMock) InsertBatchFile(ctx context.Context, arg batchsqlc.InsertBatchFileParams) error
- func (mock *QuerierMock) InsertBatchFileCalls() []struct{ ... }
- func (mock *QuerierMock) InsertIntoBatchRows(ctx context.Context, arg batchsqlc.InsertIntoBatchRowsParams) error
- func (mock *QuerierMock) InsertIntoBatchRowsCalls() []struct{ ... }
- func (mock *QuerierMock) InsertIntoBatches(ctx context.Context, arg batchsqlc.InsertIntoBatchesParams) (uuid.UUID, error)
- func (mock *QuerierMock) InsertIntoBatchesCalls() []struct{ ... }
- func (mock *QuerierMock) UpdateBatchCounters(ctx context.Context, arg batchsqlc.UpdateBatchCountersParams) error
- func (mock *QuerierMock) UpdateBatchCountersCalls() []struct{ ... }
- func (mock *QuerierMock) UpdateBatchOutputFiles(ctx context.Context, arg batchsqlc.UpdateBatchOutputFilesParams) error
- func (mock *QuerierMock) UpdateBatchOutputFilesCalls() []struct{ ... }
- func (mock *QuerierMock) UpdateBatchResult(ctx context.Context, arg batchsqlc.UpdateBatchResultParams) error
- func (mock *QuerierMock) UpdateBatchResultCalls() []struct{ ... }
- func (mock *QuerierMock) UpdateBatchRowStatus(ctx context.Context, arg batchsqlc.UpdateBatchRowStatusParams) error
- func (mock *QuerierMock) UpdateBatchRowStatusCalls() []struct{ ... }
- func (mock *QuerierMock) UpdateBatchRowsBatchJob(ctx context.Context, arg batchsqlc.UpdateBatchRowsBatchJobParams) error
- func (mock *QuerierMock) UpdateBatchRowsBatchJobCalls() []struct{ ... }
- func (mock *QuerierMock) UpdateBatchRowsSlowQuery(ctx context.Context, arg batchsqlc.UpdateBatchRowsSlowQueryParams) error
- func (mock *QuerierMock) UpdateBatchRowsSlowQueryCalls() []struct{ ... }
- func (mock *QuerierMock) UpdateBatchRowsStatus(ctx context.Context, arg batchsqlc.UpdateBatchRowsStatusParams) error
- func (mock *QuerierMock) UpdateBatchRowsStatusCalls() []struct{ ... }
- func (mock *QuerierMock) UpdateBatchStatus(ctx context.Context, arg batchsqlc.UpdateBatchStatusParams) error
- func (mock *QuerierMock) UpdateBatchStatusCalls() []struct{ ... }
- func (mock *QuerierMock) UpdateBatchSummary(ctx context.Context, arg batchsqlc.UpdateBatchSummaryParams) error
- func (mock *QuerierMock) UpdateBatchSummaryCalls() []struct{ ... }
- func (mock *QuerierMock) UpdateBatchSummaryOnAbort(ctx context.Context, arg batchsqlc.UpdateBatchSummaryOnAbortParams) error
- func (mock *QuerierMock) UpdateBatchSummaryOnAbortCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuerierMock ¶
type QuerierMock struct { // BulkInsertIntoBatchRowsFunc mocks the BulkInsertIntoBatchRows method. BulkInsertIntoBatchRowsFunc func(ctx context.Context, arg batchsqlc.BulkInsertIntoBatchRowsParams) (int64, error) // CountBatchRowsByBatchIDAndStatusFunc mocks the CountBatchRowsByBatchIDAndStatus method. CountBatchRowsByBatchIDAndStatusFunc func(ctx context.Context, arg batchsqlc.CountBatchRowsByBatchIDAndStatusParams) (int64, error) // FetchBatchRowsForBatchDoneFunc mocks the FetchBatchRowsForBatchDone method. FetchBatchRowsForBatchDoneFunc func(ctx context.Context, batch uuid.UUID) ([]batchsqlc.FetchBatchRowsForBatchDoneRow, error) // FetchBlockOfRowsFunc mocks the FetchBlockOfRows method. FetchBlockOfRowsFunc func(ctx context.Context, arg batchsqlc.FetchBlockOfRowsParams) ([]batchsqlc.FetchBlockOfRowsRow, error) // GetBatchByIDFunc mocks the GetBatchByID method. GetBatchByIDFunc func(ctx context.Context, id uuid.UUID) (batchsqlc.Batch, error) // GetBatchRowsByBatchIDFunc mocks the GetBatchRowsByBatchID method. GetBatchRowsByBatchIDFunc func(ctx context.Context, batch uuid.UUID) ([]batchsqlc.Batchrow, error) // GetBatchRowsByBatchIDSortedFunc mocks the GetBatchRowsByBatchIDSorted method. GetBatchRowsByBatchIDSortedFunc func(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetBatchRowsByBatchIDSortedRow, error) // GetBatchRowsCountFunc mocks the GetBatchRowsCount method. GetBatchRowsCountFunc func(ctx context.Context, batch uuid.UUID) (int64, error) // GetBatchStatusFunc mocks the GetBatchStatus method. GetBatchStatusFunc func(ctx context.Context, id uuid.UUID) (batchsqlc.StatusEnum, error) // GetBatchStatusAndOutputFilesFunc mocks the GetBatchStatusAndOutputFiles method. GetBatchStatusAndOutputFilesFunc func(ctx context.Context, id uuid.UUID) (batchsqlc.GetBatchStatusAndOutputFilesRow, error) // GetCompletedBatchesFunc mocks the GetCompletedBatches method. GetCompletedBatchesFunc func(ctx context.Context) ([]uuid.UUID, error) // GetPendingBatchRowsFunc mocks the GetPendingBatchRows method. GetPendingBatchRowsFunc func(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetPendingBatchRowsRow, error) // GetProcessedBatchRowsByBatchIDSortedFunc mocks the GetProcessedBatchRowsByBatchIDSorted method. GetProcessedBatchRowsByBatchIDSortedFunc func(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetProcessedBatchRowsByBatchIDSortedRow, error) // InsertBatchFileFunc mocks the InsertBatchFile method. InsertBatchFileFunc func(ctx context.Context, arg batchsqlc.InsertBatchFileParams) error // InsertIntoBatchRowsFunc mocks the InsertIntoBatchRows method. InsertIntoBatchRowsFunc func(ctx context.Context, arg batchsqlc.InsertIntoBatchRowsParams) error // InsertIntoBatchesFunc mocks the InsertIntoBatches method. InsertIntoBatchesFunc func(ctx context.Context, arg batchsqlc.InsertIntoBatchesParams) (uuid.UUID, error) // UpdateBatchCountersFunc mocks the UpdateBatchCounters method. UpdateBatchCountersFunc func(ctx context.Context, arg batchsqlc.UpdateBatchCountersParams) error // UpdateBatchOutputFilesFunc mocks the UpdateBatchOutputFiles method. UpdateBatchOutputFilesFunc func(ctx context.Context, arg batchsqlc.UpdateBatchOutputFilesParams) error // UpdateBatchResultFunc mocks the UpdateBatchResult method. UpdateBatchResultFunc func(ctx context.Context, arg batchsqlc.UpdateBatchResultParams) error // UpdateBatchRowStatusFunc mocks the UpdateBatchRowStatus method. UpdateBatchRowStatusFunc func(ctx context.Context, arg batchsqlc.UpdateBatchRowStatusParams) error // UpdateBatchRowsBatchJobFunc mocks the UpdateBatchRowsBatchJob method. UpdateBatchRowsBatchJobFunc func(ctx context.Context, arg batchsqlc.UpdateBatchRowsBatchJobParams) error // UpdateBatchRowsSlowQueryFunc mocks the UpdateBatchRowsSlowQuery method. UpdateBatchRowsSlowQueryFunc func(ctx context.Context, arg batchsqlc.UpdateBatchRowsSlowQueryParams) error // UpdateBatchRowsStatusFunc mocks the UpdateBatchRowsStatus method. UpdateBatchRowsStatusFunc func(ctx context.Context, arg batchsqlc.UpdateBatchRowsStatusParams) error // UpdateBatchStatusFunc mocks the UpdateBatchStatus method. UpdateBatchStatusFunc func(ctx context.Context, arg batchsqlc.UpdateBatchStatusParams) error // UpdateBatchSummaryFunc mocks the UpdateBatchSummary method. UpdateBatchSummaryFunc func(ctx context.Context, arg batchsqlc.UpdateBatchSummaryParams) error // UpdateBatchSummaryOnAbortFunc mocks the UpdateBatchSummaryOnAbort method. UpdateBatchSummaryOnAbortFunc func(ctx context.Context, arg batchsqlc.UpdateBatchSummaryOnAbortParams) error // contains filtered or unexported fields }
QuerierMock is a mock implementation of batchsqlc.Querier.
func TestSomethingThatUsesQuerier(t *testing.T) { // make and configure a mocked batchsqlc.Querier mockedQuerier := &QuerierMock{ BulkInsertIntoBatchRowsFunc: func(ctx context.Context, arg batchsqlc.BulkInsertIntoBatchRowsParams) (int64, error) { panic("mock out the BulkInsertIntoBatchRows method") }, CountBatchRowsByBatchIDAndStatusFunc: func(ctx context.Context, arg batchsqlc.CountBatchRowsByBatchIDAndStatusParams) (int64, error) { panic("mock out the CountBatchRowsByBatchIDAndStatus method") }, FetchBatchRowsForBatchDoneFunc: func(ctx context.Context, batch uuid.UUID) ([]batchsqlc.FetchBatchRowsForBatchDoneRow, error) { panic("mock out the FetchBatchRowsForBatchDone method") }, FetchBlockOfRowsFunc: func(ctx context.Context, arg batchsqlc.FetchBlockOfRowsParams) ([]batchsqlc.FetchBlockOfRowsRow, error) { panic("mock out the FetchBlockOfRows method") }, GetBatchByIDFunc: func(ctx context.Context, id uuid.UUID) (batchsqlc.Batch, error) { panic("mock out the GetBatchByID method") }, GetBatchRowsByBatchIDFunc: func(ctx context.Context, batch uuid.UUID) ([]batchsqlc.Batchrow, error) { panic("mock out the GetBatchRowsByBatchID method") }, GetBatchRowsByBatchIDSortedFunc: func(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetBatchRowsByBatchIDSortedRow, error) { panic("mock out the GetBatchRowsByBatchIDSorted method") }, GetBatchRowsCountFunc: func(ctx context.Context, batch uuid.UUID) (int64, error) { panic("mock out the GetBatchRowsCount method") }, GetBatchStatusFunc: func(ctx context.Context, id uuid.UUID) (batchsqlc.StatusEnum, error) { panic("mock out the GetBatchStatus method") }, GetBatchStatusAndOutputFilesFunc: func(ctx context.Context, id uuid.UUID) (batchsqlc.GetBatchStatusAndOutputFilesRow, error) { panic("mock out the GetBatchStatusAndOutputFiles method") }, GetCompletedBatchesFunc: func(ctx context.Context) ([]uuid.UUID, error) { panic("mock out the GetCompletedBatches method") }, GetPendingBatchRowsFunc: func(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetPendingBatchRowsRow, error) { panic("mock out the GetPendingBatchRows method") }, GetProcessedBatchRowsByBatchIDSortedFunc: func(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetProcessedBatchRowsByBatchIDSortedRow, error) { panic("mock out the GetProcessedBatchRowsByBatchIDSorted method") }, InsertBatchFileFunc: func(ctx context.Context, arg batchsqlc.InsertBatchFileParams) error { panic("mock out the InsertBatchFile method") }, InsertIntoBatchRowsFunc: func(ctx context.Context, arg batchsqlc.InsertIntoBatchRowsParams) error { panic("mock out the InsertIntoBatchRows method") }, InsertIntoBatchesFunc: func(ctx context.Context, arg batchsqlc.InsertIntoBatchesParams) (uuid.UUID, error) { panic("mock out the InsertIntoBatches method") }, UpdateBatchCountersFunc: func(ctx context.Context, arg batchsqlc.UpdateBatchCountersParams) error { panic("mock out the UpdateBatchCounters method") }, UpdateBatchOutputFilesFunc: func(ctx context.Context, arg batchsqlc.UpdateBatchOutputFilesParams) error { panic("mock out the UpdateBatchOutputFiles method") }, UpdateBatchResultFunc: func(ctx context.Context, arg batchsqlc.UpdateBatchResultParams) error { panic("mock out the UpdateBatchResult method") }, UpdateBatchRowStatusFunc: func(ctx context.Context, arg batchsqlc.UpdateBatchRowStatusParams) error { panic("mock out the UpdateBatchRowStatus method") }, UpdateBatchRowsBatchJobFunc: func(ctx context.Context, arg batchsqlc.UpdateBatchRowsBatchJobParams) error { panic("mock out the UpdateBatchRowsBatchJob method") }, UpdateBatchRowsSlowQueryFunc: func(ctx context.Context, arg batchsqlc.UpdateBatchRowsSlowQueryParams) error { panic("mock out the UpdateBatchRowsSlowQuery method") }, UpdateBatchRowsStatusFunc: func(ctx context.Context, arg batchsqlc.UpdateBatchRowsStatusParams) error { panic("mock out the UpdateBatchRowsStatus method") }, UpdateBatchStatusFunc: func(ctx context.Context, arg batchsqlc.UpdateBatchStatusParams) error { panic("mock out the UpdateBatchStatus method") }, UpdateBatchSummaryFunc: func(ctx context.Context, arg batchsqlc.UpdateBatchSummaryParams) error { panic("mock out the UpdateBatchSummary method") }, UpdateBatchSummaryOnAbortFunc: func(ctx context.Context, arg batchsqlc.UpdateBatchSummaryOnAbortParams) error { panic("mock out the UpdateBatchSummaryOnAbort method") }, } // use mockedQuerier in code that requires batchsqlc.Querier // and then make assertions. }
func (*QuerierMock) BulkInsertIntoBatchRows ¶
func (mock *QuerierMock) BulkInsertIntoBatchRows(ctx context.Context, arg batchsqlc.BulkInsertIntoBatchRowsParams) (int64, error)
BulkInsertIntoBatchRows calls BulkInsertIntoBatchRowsFunc.
func (*QuerierMock) BulkInsertIntoBatchRowsCalls ¶
func (mock *QuerierMock) BulkInsertIntoBatchRowsCalls() []struct { Ctx context.Context Arg batchsqlc.BulkInsertIntoBatchRowsParams }
BulkInsertIntoBatchRowsCalls gets all the calls that were made to BulkInsertIntoBatchRows. Check the length with:
len(mockedQuerier.BulkInsertIntoBatchRowsCalls())
func (*QuerierMock) CountBatchRowsByBatchIDAndStatus ¶
func (mock *QuerierMock) CountBatchRowsByBatchIDAndStatus(ctx context.Context, arg batchsqlc.CountBatchRowsByBatchIDAndStatusParams) (int64, error)
CountBatchRowsByBatchIDAndStatus calls CountBatchRowsByBatchIDAndStatusFunc.
func (*QuerierMock) CountBatchRowsByBatchIDAndStatusCalls ¶
func (mock *QuerierMock) CountBatchRowsByBatchIDAndStatusCalls() []struct { Ctx context.Context Arg batchsqlc.CountBatchRowsByBatchIDAndStatusParams }
CountBatchRowsByBatchIDAndStatusCalls gets all the calls that were made to CountBatchRowsByBatchIDAndStatus. Check the length with:
len(mockedQuerier.CountBatchRowsByBatchIDAndStatusCalls())
func (*QuerierMock) FetchBatchRowsForBatchDone ¶
func (mock *QuerierMock) FetchBatchRowsForBatchDone(ctx context.Context, batch uuid.UUID) ([]batchsqlc.FetchBatchRowsForBatchDoneRow, error)
FetchBatchRowsForBatchDone calls FetchBatchRowsForBatchDoneFunc.
func (*QuerierMock) FetchBatchRowsForBatchDoneCalls ¶
func (mock *QuerierMock) FetchBatchRowsForBatchDoneCalls() []struct { Ctx context.Context Batch uuid.UUID }
FetchBatchRowsForBatchDoneCalls gets all the calls that were made to FetchBatchRowsForBatchDone. Check the length with:
len(mockedQuerier.FetchBatchRowsForBatchDoneCalls())
func (*QuerierMock) FetchBlockOfRows ¶
func (mock *QuerierMock) FetchBlockOfRows(ctx context.Context, arg batchsqlc.FetchBlockOfRowsParams) ([]batchsqlc.FetchBlockOfRowsRow, error)
FetchBlockOfRows calls FetchBlockOfRowsFunc.
func (*QuerierMock) FetchBlockOfRowsCalls ¶
func (mock *QuerierMock) FetchBlockOfRowsCalls() []struct { Ctx context.Context Arg batchsqlc.FetchBlockOfRowsParams }
FetchBlockOfRowsCalls gets all the calls that were made to FetchBlockOfRows. Check the length with:
len(mockedQuerier.FetchBlockOfRowsCalls())
func (*QuerierMock) GetBatchByID ¶
GetBatchByID calls GetBatchByIDFunc.
func (*QuerierMock) GetBatchByIDCalls ¶
func (mock *QuerierMock) GetBatchByIDCalls() []struct { Ctx context.Context ID uuid.UUID }
GetBatchByIDCalls gets all the calls that were made to GetBatchByID. Check the length with:
len(mockedQuerier.GetBatchByIDCalls())
func (*QuerierMock) GetBatchRowsByBatchID ¶
func (mock *QuerierMock) GetBatchRowsByBatchID(ctx context.Context, batch uuid.UUID) ([]batchsqlc.Batchrow, error)
GetBatchRowsByBatchID calls GetBatchRowsByBatchIDFunc.
func (*QuerierMock) GetBatchRowsByBatchIDCalls ¶
func (mock *QuerierMock) GetBatchRowsByBatchIDCalls() []struct { Ctx context.Context Batch uuid.UUID }
GetBatchRowsByBatchIDCalls gets all the calls that were made to GetBatchRowsByBatchID. Check the length with:
len(mockedQuerier.GetBatchRowsByBatchIDCalls())
func (*QuerierMock) GetBatchRowsByBatchIDSorted ¶
func (mock *QuerierMock) GetBatchRowsByBatchIDSorted(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetBatchRowsByBatchIDSortedRow, error)
GetBatchRowsByBatchIDSorted calls GetBatchRowsByBatchIDSortedFunc.
func (*QuerierMock) GetBatchRowsByBatchIDSortedCalls ¶
func (mock *QuerierMock) GetBatchRowsByBatchIDSortedCalls() []struct { Ctx context.Context Batch uuid.UUID }
GetBatchRowsByBatchIDSortedCalls gets all the calls that were made to GetBatchRowsByBatchIDSorted. Check the length with:
len(mockedQuerier.GetBatchRowsByBatchIDSortedCalls())
func (*QuerierMock) GetBatchRowsCount ¶
GetBatchRowsCount calls GetBatchRowsCountFunc.
func (*QuerierMock) GetBatchRowsCountCalls ¶
func (mock *QuerierMock) GetBatchRowsCountCalls() []struct { Ctx context.Context Batch uuid.UUID }
GetBatchRowsCountCalls gets all the calls that were made to GetBatchRowsCount. Check the length with:
len(mockedQuerier.GetBatchRowsCountCalls())
func (*QuerierMock) GetBatchStatus ¶
func (mock *QuerierMock) GetBatchStatus(ctx context.Context, id uuid.UUID) (batchsqlc.StatusEnum, error)
GetBatchStatus calls GetBatchStatusFunc.
func (*QuerierMock) GetBatchStatusAndOutputFiles ¶ added in v0.13.0
func (mock *QuerierMock) GetBatchStatusAndOutputFiles(ctx context.Context, id uuid.UUID) (batchsqlc.GetBatchStatusAndOutputFilesRow, error)
GetBatchStatusAndOutputFiles calls GetBatchStatusAndOutputFilesFunc.
func (*QuerierMock) GetBatchStatusAndOutputFilesCalls ¶ added in v0.13.0
func (mock *QuerierMock) GetBatchStatusAndOutputFilesCalls() []struct { Ctx context.Context ID uuid.UUID }
GetBatchStatusAndOutputFilesCalls gets all the calls that were made to GetBatchStatusAndOutputFiles. Check the length with:
len(mockedQuerier.GetBatchStatusAndOutputFilesCalls())
func (*QuerierMock) GetBatchStatusCalls ¶
func (mock *QuerierMock) GetBatchStatusCalls() []struct { Ctx context.Context ID uuid.UUID }
GetBatchStatusCalls gets all the calls that were made to GetBatchStatus. Check the length with:
len(mockedQuerier.GetBatchStatusCalls())
func (*QuerierMock) GetCompletedBatches ¶
GetCompletedBatches calls GetCompletedBatchesFunc.
func (*QuerierMock) GetCompletedBatchesCalls ¶
func (mock *QuerierMock) GetCompletedBatchesCalls() []struct { Ctx context.Context }
GetCompletedBatchesCalls gets all the calls that were made to GetCompletedBatches. Check the length with:
len(mockedQuerier.GetCompletedBatchesCalls())
func (*QuerierMock) GetPendingBatchRows ¶
func (mock *QuerierMock) GetPendingBatchRows(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetPendingBatchRowsRow, error)
GetPendingBatchRows calls GetPendingBatchRowsFunc.
func (*QuerierMock) GetPendingBatchRowsCalls ¶
func (mock *QuerierMock) GetPendingBatchRowsCalls() []struct { Ctx context.Context Batch uuid.UUID }
GetPendingBatchRowsCalls gets all the calls that were made to GetPendingBatchRows. Check the length with:
len(mockedQuerier.GetPendingBatchRowsCalls())
func (*QuerierMock) GetProcessedBatchRowsByBatchIDSorted ¶
func (mock *QuerierMock) GetProcessedBatchRowsByBatchIDSorted(ctx context.Context, batch uuid.UUID) ([]batchsqlc.GetProcessedBatchRowsByBatchIDSortedRow, error)
GetProcessedBatchRowsByBatchIDSorted calls GetProcessedBatchRowsByBatchIDSortedFunc.
func (*QuerierMock) GetProcessedBatchRowsByBatchIDSortedCalls ¶
func (mock *QuerierMock) GetProcessedBatchRowsByBatchIDSortedCalls() []struct { Ctx context.Context Batch uuid.UUID }
GetProcessedBatchRowsByBatchIDSortedCalls gets all the calls that were made to GetProcessedBatchRowsByBatchIDSorted. Check the length with:
len(mockedQuerier.GetProcessedBatchRowsByBatchIDSortedCalls())
func (*QuerierMock) InsertBatchFile ¶ added in v0.13.0
func (mock *QuerierMock) InsertBatchFile(ctx context.Context, arg batchsqlc.InsertBatchFileParams) error
InsertBatchFile calls InsertBatchFileFunc.
func (*QuerierMock) InsertBatchFileCalls ¶ added in v0.13.0
func (mock *QuerierMock) InsertBatchFileCalls() []struct { Ctx context.Context Arg batchsqlc.InsertBatchFileParams }
InsertBatchFileCalls gets all the calls that were made to InsertBatchFile. Check the length with:
len(mockedQuerier.InsertBatchFileCalls())
func (*QuerierMock) InsertIntoBatchRows ¶
func (mock *QuerierMock) InsertIntoBatchRows(ctx context.Context, arg batchsqlc.InsertIntoBatchRowsParams) error
InsertIntoBatchRows calls InsertIntoBatchRowsFunc.
func (*QuerierMock) InsertIntoBatchRowsCalls ¶
func (mock *QuerierMock) InsertIntoBatchRowsCalls() []struct { Ctx context.Context Arg batchsqlc.InsertIntoBatchRowsParams }
InsertIntoBatchRowsCalls gets all the calls that were made to InsertIntoBatchRows. Check the length with:
len(mockedQuerier.InsertIntoBatchRowsCalls())
func (*QuerierMock) InsertIntoBatches ¶
func (mock *QuerierMock) InsertIntoBatches(ctx context.Context, arg batchsqlc.InsertIntoBatchesParams) (uuid.UUID, error)
InsertIntoBatches calls InsertIntoBatchesFunc.
func (*QuerierMock) InsertIntoBatchesCalls ¶
func (mock *QuerierMock) InsertIntoBatchesCalls() []struct { Ctx context.Context Arg batchsqlc.InsertIntoBatchesParams }
InsertIntoBatchesCalls gets all the calls that were made to InsertIntoBatches. Check the length with:
len(mockedQuerier.InsertIntoBatchesCalls())
func (*QuerierMock) UpdateBatchCounters ¶
func (mock *QuerierMock) UpdateBatchCounters(ctx context.Context, arg batchsqlc.UpdateBatchCountersParams) error
UpdateBatchCounters calls UpdateBatchCountersFunc.
func (*QuerierMock) UpdateBatchCountersCalls ¶
func (mock *QuerierMock) UpdateBatchCountersCalls() []struct { Ctx context.Context Arg batchsqlc.UpdateBatchCountersParams }
UpdateBatchCountersCalls gets all the calls that were made to UpdateBatchCounters. Check the length with:
len(mockedQuerier.UpdateBatchCountersCalls())
func (*QuerierMock) UpdateBatchOutputFiles ¶
func (mock *QuerierMock) UpdateBatchOutputFiles(ctx context.Context, arg batchsqlc.UpdateBatchOutputFilesParams) error
UpdateBatchOutputFiles calls UpdateBatchOutputFilesFunc.
func (*QuerierMock) UpdateBatchOutputFilesCalls ¶
func (mock *QuerierMock) UpdateBatchOutputFilesCalls() []struct { Ctx context.Context Arg batchsqlc.UpdateBatchOutputFilesParams }
UpdateBatchOutputFilesCalls gets all the calls that were made to UpdateBatchOutputFiles. Check the length with:
len(mockedQuerier.UpdateBatchOutputFilesCalls())
func (*QuerierMock) UpdateBatchResult ¶ added in v0.13.0
func (mock *QuerierMock) UpdateBatchResult(ctx context.Context, arg batchsqlc.UpdateBatchResultParams) error
UpdateBatchResult calls UpdateBatchResultFunc.
func (*QuerierMock) UpdateBatchResultCalls ¶ added in v0.13.0
func (mock *QuerierMock) UpdateBatchResultCalls() []struct { Ctx context.Context Arg batchsqlc.UpdateBatchResultParams }
UpdateBatchResultCalls gets all the calls that were made to UpdateBatchResult. Check the length with:
len(mockedQuerier.UpdateBatchResultCalls())
func (*QuerierMock) UpdateBatchRowStatus ¶
func (mock *QuerierMock) UpdateBatchRowStatus(ctx context.Context, arg batchsqlc.UpdateBatchRowStatusParams) error
UpdateBatchRowStatus calls UpdateBatchRowStatusFunc.
func (*QuerierMock) UpdateBatchRowStatusCalls ¶
func (mock *QuerierMock) UpdateBatchRowStatusCalls() []struct { Ctx context.Context Arg batchsqlc.UpdateBatchRowStatusParams }
UpdateBatchRowStatusCalls gets all the calls that were made to UpdateBatchRowStatus. Check the length with:
len(mockedQuerier.UpdateBatchRowStatusCalls())
func (*QuerierMock) UpdateBatchRowsBatchJob ¶
func (mock *QuerierMock) UpdateBatchRowsBatchJob(ctx context.Context, arg batchsqlc.UpdateBatchRowsBatchJobParams) error
UpdateBatchRowsBatchJob calls UpdateBatchRowsBatchJobFunc.
func (*QuerierMock) UpdateBatchRowsBatchJobCalls ¶
func (mock *QuerierMock) UpdateBatchRowsBatchJobCalls() []struct { Ctx context.Context Arg batchsqlc.UpdateBatchRowsBatchJobParams }
UpdateBatchRowsBatchJobCalls gets all the calls that were made to UpdateBatchRowsBatchJob. Check the length with:
len(mockedQuerier.UpdateBatchRowsBatchJobCalls())
func (*QuerierMock) UpdateBatchRowsSlowQuery ¶
func (mock *QuerierMock) UpdateBatchRowsSlowQuery(ctx context.Context, arg batchsqlc.UpdateBatchRowsSlowQueryParams) error
UpdateBatchRowsSlowQuery calls UpdateBatchRowsSlowQueryFunc.
func (*QuerierMock) UpdateBatchRowsSlowQueryCalls ¶
func (mock *QuerierMock) UpdateBatchRowsSlowQueryCalls() []struct { Ctx context.Context Arg batchsqlc.UpdateBatchRowsSlowQueryParams }
UpdateBatchRowsSlowQueryCalls gets all the calls that were made to UpdateBatchRowsSlowQuery. Check the length with:
len(mockedQuerier.UpdateBatchRowsSlowQueryCalls())
func (*QuerierMock) UpdateBatchRowsStatus ¶
func (mock *QuerierMock) UpdateBatchRowsStatus(ctx context.Context, arg batchsqlc.UpdateBatchRowsStatusParams) error
UpdateBatchRowsStatus calls UpdateBatchRowsStatusFunc.
func (*QuerierMock) UpdateBatchRowsStatusCalls ¶
func (mock *QuerierMock) UpdateBatchRowsStatusCalls() []struct { Ctx context.Context Arg batchsqlc.UpdateBatchRowsStatusParams }
UpdateBatchRowsStatusCalls gets all the calls that were made to UpdateBatchRowsStatus. Check the length with:
len(mockedQuerier.UpdateBatchRowsStatusCalls())
func (*QuerierMock) UpdateBatchStatus ¶
func (mock *QuerierMock) UpdateBatchStatus(ctx context.Context, arg batchsqlc.UpdateBatchStatusParams) error
UpdateBatchStatus calls UpdateBatchStatusFunc.
func (*QuerierMock) UpdateBatchStatusCalls ¶
func (mock *QuerierMock) UpdateBatchStatusCalls() []struct { Ctx context.Context Arg batchsqlc.UpdateBatchStatusParams }
UpdateBatchStatusCalls gets all the calls that were made to UpdateBatchStatus. Check the length with:
len(mockedQuerier.UpdateBatchStatusCalls())
func (*QuerierMock) UpdateBatchSummary ¶
func (mock *QuerierMock) UpdateBatchSummary(ctx context.Context, arg batchsqlc.UpdateBatchSummaryParams) error
UpdateBatchSummary calls UpdateBatchSummaryFunc.
func (*QuerierMock) UpdateBatchSummaryCalls ¶
func (mock *QuerierMock) UpdateBatchSummaryCalls() []struct { Ctx context.Context Arg batchsqlc.UpdateBatchSummaryParams }
UpdateBatchSummaryCalls gets all the calls that were made to UpdateBatchSummary. Check the length with:
len(mockedQuerier.UpdateBatchSummaryCalls())
func (*QuerierMock) UpdateBatchSummaryOnAbort ¶
func (mock *QuerierMock) UpdateBatchSummaryOnAbort(ctx context.Context, arg batchsqlc.UpdateBatchSummaryOnAbortParams) error
UpdateBatchSummaryOnAbort calls UpdateBatchSummaryOnAbortFunc.
func (*QuerierMock) UpdateBatchSummaryOnAbortCalls ¶
func (mock *QuerierMock) UpdateBatchSummaryOnAbortCalls() []struct { Ctx context.Context Arg batchsqlc.UpdateBatchSummaryOnAbortParams }
UpdateBatchSummaryOnAbortCalls gets all the calls that were made to UpdateBatchSummaryOnAbort. Check the length with:
len(mockedQuerier.UpdateBatchSummaryOnAbortCalls())