mocks

package
v0.0.0-...-5b64428 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentClassifier

type DocumentClassifier struct {
	mock.Mock
}

DocumentClassifier is an autogenerated mock type for the DocumentClassifier type

func (*DocumentClassifier) Classify

func (_m *DocumentClassifier) Classify(ctx context.Context, documentId string, classifierName string, args client.ReadProfileArgs) (*results.ClassificationResult, error)

Classify provides a mock function with given fields: ctx, documentId, classifierName

type DocumentCreator

type DocumentCreator struct {
	mock.Mock
}

DocumentCreator is an autogenerated mock type for the DocumentCreator type

func (*DocumentCreator) Create

func (_m *DocumentCreator) Create(ctx context.Context, fileContents io.Reader) (ch360.Document, error)

Create provides a mock function with given fields: ctx, fileContents

type DocumentDeleter

type DocumentDeleter struct {
	mock.Mock
}

DocumentDeleter is an autogenerated mock type for the DocumentDeleter type

func (*DocumentDeleter) Delete

func (_m *DocumentDeleter) Delete(ctx context.Context, documentId string) error

Delete provides a mock function with given fields: ctx, documentId

type DocumentExtractor

type DocumentExtractor struct {
	mock.Mock
}

DocumentExtractor is an autogenerated mock type for the DocumentExtractor type

func (*DocumentExtractor) Extract

func (_m *DocumentExtractor) Extract(ctx context.Context, documentId string, extractorName string, args client.ReadProfileArgs) (*results.ExtractionResult, error)

Extract provides a mock function with given fields: ctx, documentId, extractorName

func (*DocumentExtractor) ExtractForRedaction

func (_m *DocumentExtractor) ExtractForRedaction(ctx context.Context, documentId string, extractorName string, args client.ReadProfileArgs) (*results.ExtractForRedactionResult, error)

ExtractForRedaction provides a mock function with given fields: ctx, documentId, extractorName

type DocumentGetter

type DocumentGetter struct {
	mock.Mock
}

DocumentGetter is an autogenerated mock type for the DocumentGetter type

func (*DocumentGetter) GetAll

GetAll provides a mock function with given fields: ctx

type DocumentReader

type DocumentReader struct {
	mock.Mock
}

DocumentReader is an autogenerated mock type for the DocumentReader type

func (*DocumentReader) Read

func (_m *DocumentReader) Read(ctx context.Context, documentId string, args ch360.ReadProfileArgs) error

Read provides a mock function with given fields: ctx, documentId, args

func (*DocumentReader) ReadResult

func (_m *DocumentReader) ReadResult(ctx context.Context, documentId string, mode ch360.ReadMode, args ch360.ReadProfileArgs) (io.ReadCloser, error)

ReadResult provides a mock function with given fields: ctx, documentId, mode, args

type DocumentRedactor

type DocumentRedactor struct {
	mock.Mock
}

DocumentRedactor is an autogenerated mock type for the DocumentRedactor type

func (*DocumentRedactor) Redact

func (_m *DocumentRedactor) Redact(ctx context.Context, documentId string, redactRequest request.RedactedPdfRequest) (io.ReadCloser, error)

Redact provides a mock function with given fields: ctx, documentId, redactRequest

type MockDocumentCreator

type MockDocumentCreator struct {
	// contains filtered or unexported fields
}

func NewMockDocumentCreator

func NewMockDocumentCreator(options ...pegomock.Option) *MockDocumentCreator

func (*MockDocumentCreator) Create

func (mock *MockDocumentCreator) Create(ctx context.Context, fileContents io.Reader) (ch360.Document, error)

func (*MockDocumentCreator) FailHandler

func (mock *MockDocumentCreator) FailHandler() pegomock.FailHandler

func (*MockDocumentCreator) SetFailHandler

func (mock *MockDocumentCreator) SetFailHandler(fh pegomock.FailHandler)

func (*MockDocumentCreator) VerifyWasCalled

func (mock *MockDocumentCreator) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockDocumentCreator

func (*MockDocumentCreator) VerifyWasCalledEventually

func (mock *MockDocumentCreator) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockDocumentCreator

func (*MockDocumentCreator) VerifyWasCalledInOrder

func (mock *MockDocumentCreator) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockDocumentCreator

func (*MockDocumentCreator) VerifyWasCalledOnce

func (mock *MockDocumentCreator) VerifyWasCalledOnce() *VerifierMockDocumentCreator

type MockDocumentCreator_Create_OngoingVerification

type MockDocumentCreator_Create_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockDocumentCreator_Create_OngoingVerification) GetAllCapturedArguments

func (c *MockDocumentCreator_Create_OngoingVerification) GetAllCapturedArguments() (_param0 []context.Context, _param1 []io.Reader)

func (*MockDocumentCreator_Create_OngoingVerification) GetCapturedArguments

type MockDocumentDeleter

type MockDocumentDeleter struct {
	// contains filtered or unexported fields
}

func NewMockDocumentDeleter

func NewMockDocumentDeleter(options ...pegomock.Option) *MockDocumentDeleter

func (*MockDocumentDeleter) Delete

func (mock *MockDocumentDeleter) Delete(ctx context.Context, documentId string) error

func (*MockDocumentDeleter) FailHandler

func (mock *MockDocumentDeleter) FailHandler() pegomock.FailHandler

func (*MockDocumentDeleter) SetFailHandler

func (mock *MockDocumentDeleter) SetFailHandler(fh pegomock.FailHandler)

func (*MockDocumentDeleter) VerifyWasCalled

func (mock *MockDocumentDeleter) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockDocumentDeleter

func (*MockDocumentDeleter) VerifyWasCalledEventually

func (mock *MockDocumentDeleter) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockDocumentDeleter

func (*MockDocumentDeleter) VerifyWasCalledInOrder

func (mock *MockDocumentDeleter) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockDocumentDeleter

func (*MockDocumentDeleter) VerifyWasCalledOnce

func (mock *MockDocumentDeleter) VerifyWasCalledOnce() *VerifierMockDocumentDeleter

type MockDocumentDeleter_Delete_OngoingVerification

type MockDocumentDeleter_Delete_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockDocumentDeleter_Delete_OngoingVerification) GetAllCapturedArguments

func (c *MockDocumentDeleter_Delete_OngoingVerification) GetAllCapturedArguments() (_param0 []context.Context, _param1 []string)

func (*MockDocumentDeleter_Delete_OngoingVerification) GetCapturedArguments

type ReadProfileCreator

type ReadProfileCreator struct {
	mock.Mock
}

ReadProfileCreator is an autogenerated mock type for the ReadProfileCreator type

func (*ReadProfileCreator) Create

func (_m *ReadProfileCreator) Create(ctx context.Context, name string, languages []string) (ch360.ReadProfile, error)

Create provides a mock function with given fields: ctx, name, languages

type ReadProfileGetter

type ReadProfileGetter struct {
	mock.Mock
}

ReadProfileGetter is an autogenerated mock type for the ReadProfileGetter type

func (*ReadProfileGetter) GetAll

GetAll provides a mock function with given fields: ctx

type ReadProfileGetterDeleter

type ReadProfileGetterDeleter struct {
	mock.Mock
}

ReadProfileGetterDeleter is an autogenerated mock type for the ReadProfileGetterDeleter type

func (*ReadProfileGetterDeleter) Delete

func (_m *ReadProfileGetterDeleter) Delete(ctx context.Context, name string) error

Delete provides a mock function with given fields: ctx, name

func (*ReadProfileGetterDeleter) GetAll

GetAll provides a mock function with given fields: ctx

type VerifierMockDocumentCreator

type VerifierMockDocumentCreator struct {
	// contains filtered or unexported fields
}

func (*VerifierMockDocumentCreator) Create

type VerifierMockDocumentDeleter

type VerifierMockDocumentDeleter struct {
	// contains filtered or unexported fields
}

func (*VerifierMockDocumentDeleter) Delete

Directories

Path Synopsis
Code generated by pegomock.
Code generated by pegomock.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL