package
0.40.0-beta
Repository: https://github.com/instill-ai/pipeline-backend.git
Documentation: pkg.go.dev

# README

Component mocks

This directory holds the mocks required for the tests in the component package. Tests are defined in a dedicated directory (in opposition to being defined under pipeline-backend/pkg/mock) to avoid dependency cycles.

# Functions

NewArtifactPublicServiceClientMock returns a mock for mm_artifactv1alpha.ArtifactPublicServiceClient.
NewCommandRunnerMock returns a mock for document.commandRunner.
NewErrorHandlerMock returns a mock for mm_base.ErrorHandler.
NewInputReaderMock returns a mock for mm_base.InputReader.
NewOutputWriterMock returns a mock for mm_base.OutputWriter.
NewUsageHandlerMock returns a mock for mm_base.UsageHandler.
NewWriteCloserMock returns a mock for mm_io.WriteCloser.

# Structs

ArtifactPublicServiceClientMock implements mm_artifactv1alpha.ArtifactPublicServiceClient.
ArtifactPublicServiceClientMockCreateCatalogExpectation specifies expectation struct of the ArtifactPublicServiceClient.CreateCatalog.
ArtifactPublicServiceClientMockCreateCatalogOrigins contains origins of expectations of the ArtifactPublicServiceClient.CreateCatalog.
ArtifactPublicServiceClientMockCreateCatalogParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.CreateCatalog.
ArtifactPublicServiceClientMockCreateCatalogParams contains parameters of the ArtifactPublicServiceClient.CreateCatalog.
ArtifactPublicServiceClientMockCreateCatalogResults contains results of the ArtifactPublicServiceClient.CreateCatalog.
ArtifactPublicServiceClientMockDeleteCatalogExpectation specifies expectation struct of the ArtifactPublicServiceClient.DeleteCatalog.
ArtifactPublicServiceClientMockDeleteCatalogOrigins contains origins of expectations of the ArtifactPublicServiceClient.DeleteCatalog.
ArtifactPublicServiceClientMockDeleteCatalogFileExpectation specifies expectation struct of the ArtifactPublicServiceClient.DeleteCatalogFile.
ArtifactPublicServiceClientMockDeleteCatalogFileOrigins contains origins of expectations of the ArtifactPublicServiceClient.DeleteCatalogFile.
ArtifactPublicServiceClientMockDeleteCatalogFileParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.DeleteCatalogFile.
ArtifactPublicServiceClientMockDeleteCatalogFileParams contains parameters of the ArtifactPublicServiceClient.DeleteCatalogFile.
ArtifactPublicServiceClientMockDeleteCatalogFileResults contains results of the ArtifactPublicServiceClient.DeleteCatalogFile.
ArtifactPublicServiceClientMockDeleteCatalogParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.DeleteCatalog.
ArtifactPublicServiceClientMockDeleteCatalogParams contains parameters of the ArtifactPublicServiceClient.DeleteCatalog.
ArtifactPublicServiceClientMockDeleteCatalogResults contains results of the ArtifactPublicServiceClient.DeleteCatalog.
ArtifactPublicServiceClientMockGetFileCatalogExpectation specifies expectation struct of the ArtifactPublicServiceClient.GetFileCatalog.
ArtifactPublicServiceClientMockGetFileCatalogOrigins contains origins of expectations of the ArtifactPublicServiceClient.GetFileCatalog.
ArtifactPublicServiceClientMockGetFileCatalogParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.GetFileCatalog.
ArtifactPublicServiceClientMockGetFileCatalogParams contains parameters of the ArtifactPublicServiceClient.GetFileCatalog.
ArtifactPublicServiceClientMockGetFileCatalogResults contains results of the ArtifactPublicServiceClient.GetFileCatalog.
ArtifactPublicServiceClientMockGetSourceFileExpectation specifies expectation struct of the ArtifactPublicServiceClient.GetSourceFile.
ArtifactPublicServiceClientMockGetSourceFileOrigins contains origins of expectations of the ArtifactPublicServiceClient.GetSourceFile.
ArtifactPublicServiceClientMockGetSourceFileParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.GetSourceFile.
ArtifactPublicServiceClientMockGetSourceFileParams contains parameters of the ArtifactPublicServiceClient.GetSourceFile.
ArtifactPublicServiceClientMockGetSourceFileResults contains results of the ArtifactPublicServiceClient.GetSourceFile.
ArtifactPublicServiceClientMockListCatalogFilesExpectation specifies expectation struct of the ArtifactPublicServiceClient.ListCatalogFiles.
ArtifactPublicServiceClientMockListCatalogFilesOrigins contains origins of expectations of the ArtifactPublicServiceClient.ListCatalogFiles.
ArtifactPublicServiceClientMockListCatalogFilesParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.ListCatalogFiles.
ArtifactPublicServiceClientMockListCatalogFilesParams contains parameters of the ArtifactPublicServiceClient.ListCatalogFiles.
ArtifactPublicServiceClientMockListCatalogFilesResults contains results of the ArtifactPublicServiceClient.ListCatalogFiles.
ArtifactPublicServiceClientMockListCatalogsExpectation specifies expectation struct of the ArtifactPublicServiceClient.ListCatalogs.
ArtifactPublicServiceClientMockListCatalogsOrigins contains origins of expectations of the ArtifactPublicServiceClient.ListCatalogs.
ArtifactPublicServiceClientMockListCatalogsParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.ListCatalogs.
ArtifactPublicServiceClientMockListCatalogsParams contains parameters of the ArtifactPublicServiceClient.ListCatalogs.
ArtifactPublicServiceClientMockListCatalogsResults contains results of the ArtifactPublicServiceClient.ListCatalogs.
ArtifactPublicServiceClientMockListChunksExpectation specifies expectation struct of the ArtifactPublicServiceClient.ListChunks.
ArtifactPublicServiceClientMockListChunksOrigins contains origins of expectations of the ArtifactPublicServiceClient.ListChunks.
ArtifactPublicServiceClientMockListChunksParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.ListChunks.
ArtifactPublicServiceClientMockListChunksParams contains parameters of the ArtifactPublicServiceClient.ListChunks.
ArtifactPublicServiceClientMockListChunksResults contains results of the ArtifactPublicServiceClient.ListChunks.
ArtifactPublicServiceClientMockLivenessExpectation specifies expectation struct of the ArtifactPublicServiceClient.Liveness.
ArtifactPublicServiceClientMockLivenessOrigins contains origins of expectations of the ArtifactPublicServiceClient.Liveness.
ArtifactPublicServiceClientMockLivenessParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.Liveness.
ArtifactPublicServiceClientMockLivenessParams contains parameters of the ArtifactPublicServiceClient.Liveness.
ArtifactPublicServiceClientMockLivenessResults contains results of the ArtifactPublicServiceClient.Liveness.
ArtifactPublicServiceClientMockProcessCatalogFilesExpectation specifies expectation struct of the ArtifactPublicServiceClient.ProcessCatalogFiles.
ArtifactPublicServiceClientMockProcessCatalogFilesOrigins contains origins of expectations of the ArtifactPublicServiceClient.ProcessCatalogFiles.
ArtifactPublicServiceClientMockProcessCatalogFilesParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.ProcessCatalogFiles.
ArtifactPublicServiceClientMockProcessCatalogFilesParams contains parameters of the ArtifactPublicServiceClient.ProcessCatalogFiles.
ArtifactPublicServiceClientMockProcessCatalogFilesResults contains results of the ArtifactPublicServiceClient.ProcessCatalogFiles.
ArtifactPublicServiceClientMockQuestionAnsweringExpectation specifies expectation struct of the ArtifactPublicServiceClient.QuestionAnswering.
ArtifactPublicServiceClientMockQuestionAnsweringOrigins contains origins of expectations of the ArtifactPublicServiceClient.QuestionAnswering.
ArtifactPublicServiceClientMockQuestionAnsweringParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.QuestionAnswering.
ArtifactPublicServiceClientMockQuestionAnsweringParams contains parameters of the ArtifactPublicServiceClient.QuestionAnswering.
ArtifactPublicServiceClientMockQuestionAnsweringResults contains results of the ArtifactPublicServiceClient.QuestionAnswering.
ArtifactPublicServiceClientMockReadinessExpectation specifies expectation struct of the ArtifactPublicServiceClient.Readiness.
ArtifactPublicServiceClientMockReadinessOrigins contains origins of expectations of the ArtifactPublicServiceClient.Readiness.
ArtifactPublicServiceClientMockReadinessParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.Readiness.
ArtifactPublicServiceClientMockReadinessParams contains parameters of the ArtifactPublicServiceClient.Readiness.
ArtifactPublicServiceClientMockReadinessResults contains results of the ArtifactPublicServiceClient.Readiness.
ArtifactPublicServiceClientMockSimilarityChunksSearchExpectation specifies expectation struct of the ArtifactPublicServiceClient.SimilarityChunksSearch.
ArtifactPublicServiceClientMockSimilarityChunksSearchOrigins contains origins of expectations of the ArtifactPublicServiceClient.SimilarityChunksSearch.
ArtifactPublicServiceClientMockSimilarityChunksSearchParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.SimilarityChunksSearch.
ArtifactPublicServiceClientMockSimilarityChunksSearchParams contains parameters of the ArtifactPublicServiceClient.SimilarityChunksSearch.
ArtifactPublicServiceClientMockSimilarityChunksSearchResults contains results of the ArtifactPublicServiceClient.SimilarityChunksSearch.
ArtifactPublicServiceClientMockUpdateCatalogExpectation specifies expectation struct of the ArtifactPublicServiceClient.UpdateCatalog.
ArtifactPublicServiceClientMockUpdateCatalogOrigins contains origins of expectations of the ArtifactPublicServiceClient.UpdateCatalog.
ArtifactPublicServiceClientMockUpdateCatalogParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.UpdateCatalog.
ArtifactPublicServiceClientMockUpdateCatalogParams contains parameters of the ArtifactPublicServiceClient.UpdateCatalog.
ArtifactPublicServiceClientMockUpdateCatalogResults contains results of the ArtifactPublicServiceClient.UpdateCatalog.
ArtifactPublicServiceClientMockUpdateChunkExpectation specifies expectation struct of the ArtifactPublicServiceClient.UpdateChunk.
ArtifactPublicServiceClientMockUpdateChunkOrigins contains origins of expectations of the ArtifactPublicServiceClient.UpdateChunk.
ArtifactPublicServiceClientMockUpdateChunkParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.UpdateChunk.
ArtifactPublicServiceClientMockUpdateChunkParams contains parameters of the ArtifactPublicServiceClient.UpdateChunk.
ArtifactPublicServiceClientMockUpdateChunkResults contains results of the ArtifactPublicServiceClient.UpdateChunk.
ArtifactPublicServiceClientMockUploadCatalogFileExpectation specifies expectation struct of the ArtifactPublicServiceClient.UploadCatalogFile.
ArtifactPublicServiceClientMockUploadCatalogFileOrigins contains origins of expectations of the ArtifactPublicServiceClient.UploadCatalogFile.
ArtifactPublicServiceClientMockUploadCatalogFileParamPtrs contains pointers to parameters of the ArtifactPublicServiceClient.UploadCatalogFile.
ArtifactPublicServiceClientMockUploadCatalogFileParams contains parameters of the ArtifactPublicServiceClient.UploadCatalogFile.
ArtifactPublicServiceClientMockUploadCatalogFileResults contains results of the ArtifactPublicServiceClient.UploadCatalogFile.
CommandRunnerMock implements document.commandRunner.
CommandRunnerMockCombinedOutputExpectation specifies expectation struct of the commandRunner.CombinedOutput.
CommandRunnerMockCombinedOutputResults contains results of the commandRunner.CombinedOutput.
CommandRunnerMockStdinPipeExpectation specifies expectation struct of the commandRunner.StdinPipe.
CommandRunnerMockStdinPipeResults contains results of the commandRunner.StdinPipe.
ErrorHandlerMock implements mm_base.ErrorHandler.
ErrorHandlerMockErrorExpectation specifies expectation struct of the ErrorHandler.Error.
ErrorHandlerMockErrorOrigins contains origins of expectations of the ErrorHandler.Error.
ErrorHandlerMockErrorParamPtrs contains pointers to parameters of the ErrorHandler.Error.
ErrorHandlerMockErrorParams contains parameters of the ErrorHandler.Error.
InputReaderMock implements mm_base.InputReader.
InputReaderMockReadExpectation specifies expectation struct of the InputReader.Read.
InputReaderMockReadOrigins contains origins of expectations of the InputReader.Read.
InputReaderMockReadParamPtrs contains pointers to parameters of the InputReader.Read.
InputReaderMockReadParams contains parameters of the InputReader.Read.
InputReaderMockReadResults contains results of the InputReader.Read.
OutputWriterMock implements mm_base.OutputWriter.
OutputWriterMockWriteExpectation specifies expectation struct of the OutputWriter.Write.
OutputWriterMockWriteOrigins contains origins of expectations of the OutputWriter.Write.
OutputWriterMockWriteParamPtrs contains pointers to parameters of the OutputWriter.Write.
OutputWriterMockWriteParams contains parameters of the OutputWriter.Write.
OutputWriterMockWriteResults contains results of the OutputWriter.Write.
UsageHandlerMock implements mm_base.UsageHandler.
UsageHandlerMockCheckExpectation specifies expectation struct of the UsageHandler.Check.
UsageHandlerMockCheckOrigins contains origins of expectations of the UsageHandler.Check.
UsageHandlerMockCheckParamPtrs contains pointers to parameters of the UsageHandler.Check.
UsageHandlerMockCheckParams contains parameters of the UsageHandler.Check.
UsageHandlerMockCheckResults contains results of the UsageHandler.Check.
UsageHandlerMockCollectExpectation specifies expectation struct of the UsageHandler.Collect.
UsageHandlerMockCollectOrigins contains origins of expectations of the UsageHandler.Collect.
UsageHandlerMockCollectParamPtrs contains pointers to parameters of the UsageHandler.Collect.
UsageHandlerMockCollectParams contains parameters of the UsageHandler.Collect.
UsageHandlerMockCollectResults contains results of the UsageHandler.Collect.
WriteCloserMock implements mm_io.WriteCloser.
WriteCloserMockCloseExpectation specifies expectation struct of the WriteCloser.Close.
WriteCloserMockCloseResults contains results of the WriteCloser.Close.
WriteCloserMockWriteExpectation specifies expectation struct of the WriteCloser.Write.
WriteCloserMockWriteOrigins contains origins of expectations of the WriteCloser.Write.
WriteCloserMockWriteParamPtrs contains pointers to parameters of the WriteCloser.Write.
WriteCloserMockWriteParams contains parameters of the WriteCloser.Write.
WriteCloserMockWriteResults contains results of the WriteCloser.Write.