Documentation
¶
Index ¶
Constants ¶
View Source
const DummyGoogleCert = `` /* 1678-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAzure ¶
func (*MockAzure) Describe ¶
func (a *MockAzure) Describe(ctx context.Context, url string) ([]vision.VisionResult, structured_error.StructuredError)
type MockGoogle ¶
type MockGoogle struct {
T *testing.T
GetOCRMock func(url string) (result *vision.OCRResult, err error)
TranslateMock func(message string) (language.Tag, string, error)
}
func (*MockGoogle) Close ¶
func (g *MockGoogle) Close() error
func (*MockGoogle) GetOCR ¶
func (g *MockGoogle) GetOCR(ctx context.Context, url string) (*vision.OCRResult, structured_error.StructuredError)
func (*MockGoogle) Translate ¶
func (g *MockGoogle) Translate(ctx context.Context, message string) (language.Tag, string, structured_error.StructuredError)
Click to show internal directories.
Click to hide internal directories.