textractdouble

package
v0.0.0-...-8548fdf Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by go awsdoublegen; DO NOT EDIT. This file was generated at 2020-01-29T21:22:05+11:00 For SDKVersion 1.28.13 Package textractdouble contains test double implementation of textractiface.TextractAPI

Package textractdouble provides a TestDouble implementation of textractiface.TextractAPI

Code generated by go awsdoublegen; DO NOT EDIT. This file was generated at 2020-01-29T21:22:05+11:00

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TextractDouble

type TextractDouble struct {
	textractiface.TextractAPI
	*awsdouble.AWSTestDouble
}

TextractDouble is TestDouble for textractiface.TextractAPI

func NewDouble

func NewDouble(t godouble.T, configurators ...func(*awsdouble.AWSTestDouble)) *TextractDouble

Constructor for TextractDouble Default configuration will ensure

  • API operations not explicitly stubbed will return an empty output struct pointer, and nil error. To simulate long polling, "Poll" operations will return these values after a random delay of up to 100ms.

  • WithContext methods implement a 'Fake' method that returns a cancellation error if the context is cancelled before the method is called.

  • Pages and PagesWithContext methods similarly implement a 'Fake' method that paginates over the underlying method.

    This allows tests to only stub the simple api methods and be generally unconcerned whether the SUT is using the Context or Pagination forms of the API.

func (*TextractDouble) AnalyzeDocument

func (*TextractDouble) AnalyzeDocumentRequest

func (d *TextractDouble) AnalyzeDocumentRequest(i0 *textract.AnalyzeDocumentInput) (r0 *request.Request, r1 *textract.AnalyzeDocumentOutput)

func (*TextractDouble) AnalyzeDocumentWithContext

func (d *TextractDouble) AnalyzeDocumentWithContext(i0 context.Context, i1 *textract.AnalyzeDocumentInput, i2 ...request.Option) (r0 *textract.AnalyzeDocumentOutput, r1 error)

func (*TextractDouble) DetectDocumentText

func (*TextractDouble) DetectDocumentTextRequest

func (*TextractDouble) DetectDocumentTextWithContext

func (d *TextractDouble) DetectDocumentTextWithContext(i0 context.Context, i1 *textract.DetectDocumentTextInput, i2 ...request.Option) (r0 *textract.DetectDocumentTextOutput, r1 error)

func (*TextractDouble) GetDocumentAnalysis

func (*TextractDouble) GetDocumentAnalysisRequest

func (*TextractDouble) GetDocumentAnalysisWithContext

func (d *TextractDouble) GetDocumentAnalysisWithContext(i0 context.Context, i1 *textract.GetDocumentAnalysisInput, i2 ...request.Option) (r0 *textract.GetDocumentAnalysisOutput, r1 error)

func (*TextractDouble) GetDocumentTextDetection

func (*TextractDouble) GetDocumentTextDetectionRequest

func (*TextractDouble) GetDocumentTextDetectionWithContext

func (d *TextractDouble) GetDocumentTextDetectionWithContext(i0 context.Context, i1 *textract.GetDocumentTextDetectionInput, i2 ...request.Option) (r0 *textract.GetDocumentTextDetectionOutput, r1 error)

func (*TextractDouble) StartDocumentAnalysis

func (*TextractDouble) StartDocumentAnalysisRequest

func (*TextractDouble) StartDocumentAnalysisWithContext

func (d *TextractDouble) StartDocumentAnalysisWithContext(i0 context.Context, i1 *textract.StartDocumentAnalysisInput, i2 ...request.Option) (r0 *textract.StartDocumentAnalysisOutput, r1 error)

func (*TextractDouble) StartDocumentTextDetection

func (*TextractDouble) StartDocumentTextDetectionWithContext

func (d *TextractDouble) StartDocumentTextDetectionWithContext(i0 context.Context, i1 *textract.StartDocumentTextDetectionInput, i2 ...request.Option) (r0 *textract.StartDocumentTextDetectionOutput, r1 error)

Jump to

Keyboard shortcuts

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