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 pollydouble contains test double implementation of pollyiface.PollyAPI
Package pollydouble provides a TestDouble implementation of pollyiface.PollyAPI ¶
Code generated by go awsdoublegen; DO NOT EDIT. This file was generated at 2020-01-29T21:22:05+11:00
Index ¶
- type PollyDouble
- func (d *PollyDouble) DeleteLexicon(i0 *polly.DeleteLexiconInput) (r0 *polly.DeleteLexiconOutput, r1 error)
- func (d *PollyDouble) DeleteLexiconRequest(i0 *polly.DeleteLexiconInput) (r0 *request.Request, r1 *polly.DeleteLexiconOutput)
- func (d *PollyDouble) DeleteLexiconWithContext(i0 context.Context, i1 *polly.DeleteLexiconInput, i2 ...request.Option) (r0 *polly.DeleteLexiconOutput, r1 error)
- func (d *PollyDouble) DescribeVoices(i0 *polly.DescribeVoicesInput) (r0 *polly.DescribeVoicesOutput, r1 error)
- func (d *PollyDouble) DescribeVoicesRequest(i0 *polly.DescribeVoicesInput) (r0 *request.Request, r1 *polly.DescribeVoicesOutput)
- func (d *PollyDouble) DescribeVoicesWithContext(i0 context.Context, i1 *polly.DescribeVoicesInput, i2 ...request.Option) (r0 *polly.DescribeVoicesOutput, r1 error)
- func (d *PollyDouble) GetLexicon(i0 *polly.GetLexiconInput) (r0 *polly.GetLexiconOutput, r1 error)
- func (d *PollyDouble) GetLexiconRequest(i0 *polly.GetLexiconInput) (r0 *request.Request, r1 *polly.GetLexiconOutput)
- func (d *PollyDouble) GetLexiconWithContext(i0 context.Context, i1 *polly.GetLexiconInput, i2 ...request.Option) (r0 *polly.GetLexiconOutput, r1 error)
- func (d *PollyDouble) GetSpeechSynthesisTask(i0 *polly.GetSpeechSynthesisTaskInput) (r0 *polly.GetSpeechSynthesisTaskOutput, r1 error)
- func (d *PollyDouble) GetSpeechSynthesisTaskRequest(i0 *polly.GetSpeechSynthesisTaskInput) (r0 *request.Request, r1 *polly.GetSpeechSynthesisTaskOutput)
- func (d *PollyDouble) GetSpeechSynthesisTaskWithContext(i0 context.Context, i1 *polly.GetSpeechSynthesisTaskInput, ...) (r0 *polly.GetSpeechSynthesisTaskOutput, r1 error)
- func (d *PollyDouble) ListLexicons(i0 *polly.ListLexiconsInput) (r0 *polly.ListLexiconsOutput, r1 error)
- func (d *PollyDouble) ListLexiconsRequest(i0 *polly.ListLexiconsInput) (r0 *request.Request, r1 *polly.ListLexiconsOutput)
- func (d *PollyDouble) ListLexiconsWithContext(i0 context.Context, i1 *polly.ListLexiconsInput, i2 ...request.Option) (r0 *polly.ListLexiconsOutput, r1 error)
- func (d *PollyDouble) ListSpeechSynthesisTasks(i0 *polly.ListSpeechSynthesisTasksInput) (r0 *polly.ListSpeechSynthesisTasksOutput, r1 error)
- func (d *PollyDouble) ListSpeechSynthesisTasksPages(i0 *polly.ListSpeechSynthesisTasksInput, ...) (r0 error)
- func (d *PollyDouble) ListSpeechSynthesisTasksPagesWithContext(i0 context.Context, i1 *polly.ListSpeechSynthesisTasksInput, ...) (r0 error)
- func (d *PollyDouble) ListSpeechSynthesisTasksRequest(i0 *polly.ListSpeechSynthesisTasksInput) (r0 *request.Request, r1 *polly.ListSpeechSynthesisTasksOutput)
- func (d *PollyDouble) ListSpeechSynthesisTasksWithContext(i0 context.Context, i1 *polly.ListSpeechSynthesisTasksInput, ...) (r0 *polly.ListSpeechSynthesisTasksOutput, r1 error)
- func (d *PollyDouble) PutLexicon(i0 *polly.PutLexiconInput) (r0 *polly.PutLexiconOutput, r1 error)
- func (d *PollyDouble) PutLexiconRequest(i0 *polly.PutLexiconInput) (r0 *request.Request, r1 *polly.PutLexiconOutput)
- func (d *PollyDouble) PutLexiconWithContext(i0 context.Context, i1 *polly.PutLexiconInput, i2 ...request.Option) (r0 *polly.PutLexiconOutput, r1 error)
- func (d *PollyDouble) StartSpeechSynthesisTask(i0 *polly.StartSpeechSynthesisTaskInput) (r0 *polly.StartSpeechSynthesisTaskOutput, r1 error)
- func (d *PollyDouble) StartSpeechSynthesisTaskRequest(i0 *polly.StartSpeechSynthesisTaskInput) (r0 *request.Request, r1 *polly.StartSpeechSynthesisTaskOutput)
- func (d *PollyDouble) StartSpeechSynthesisTaskWithContext(i0 context.Context, i1 *polly.StartSpeechSynthesisTaskInput, ...) (r0 *polly.StartSpeechSynthesisTaskOutput, r1 error)
- func (d *PollyDouble) SynthesizeSpeech(i0 *polly.SynthesizeSpeechInput) (r0 *polly.SynthesizeSpeechOutput, r1 error)
- func (d *PollyDouble) SynthesizeSpeechRequest(i0 *polly.SynthesizeSpeechInput) (r0 *request.Request, r1 *polly.SynthesizeSpeechOutput)
- func (d *PollyDouble) SynthesizeSpeechWithContext(i0 context.Context, i1 *polly.SynthesizeSpeechInput, i2 ...request.Option) (r0 *polly.SynthesizeSpeechOutput, r1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PollyDouble ¶
type PollyDouble struct { pollyiface.PollyAPI *awsdouble.AWSTestDouble }
PollyDouble is TestDouble for pollyiface.PollyAPI
func NewDouble ¶
func NewDouble(t godouble.T, configurators ...func(*awsdouble.AWSTestDouble)) *PollyDouble
Constructor for PollyDouble 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 (*PollyDouble) DeleteLexicon ¶
func (d *PollyDouble) DeleteLexicon(i0 *polly.DeleteLexiconInput) (r0 *polly.DeleteLexiconOutput, r1 error)
func (*PollyDouble) DeleteLexiconRequest ¶
func (d *PollyDouble) DeleteLexiconRequest(i0 *polly.DeleteLexiconInput) (r0 *request.Request, r1 *polly.DeleteLexiconOutput)
func (*PollyDouble) DeleteLexiconWithContext ¶
func (d *PollyDouble) DeleteLexiconWithContext(i0 context.Context, i1 *polly.DeleteLexiconInput, i2 ...request.Option) (r0 *polly.DeleteLexiconOutput, r1 error)
func (*PollyDouble) DescribeVoices ¶
func (d *PollyDouble) DescribeVoices(i0 *polly.DescribeVoicesInput) (r0 *polly.DescribeVoicesOutput, r1 error)
func (*PollyDouble) DescribeVoicesRequest ¶
func (d *PollyDouble) DescribeVoicesRequest(i0 *polly.DescribeVoicesInput) (r0 *request.Request, r1 *polly.DescribeVoicesOutput)
func (*PollyDouble) DescribeVoicesWithContext ¶
func (d *PollyDouble) DescribeVoicesWithContext(i0 context.Context, i1 *polly.DescribeVoicesInput, i2 ...request.Option) (r0 *polly.DescribeVoicesOutput, r1 error)
func (*PollyDouble) GetLexicon ¶
func (d *PollyDouble) GetLexicon(i0 *polly.GetLexiconInput) (r0 *polly.GetLexiconOutput, r1 error)
func (*PollyDouble) GetLexiconRequest ¶
func (d *PollyDouble) GetLexiconRequest(i0 *polly.GetLexiconInput) (r0 *request.Request, r1 *polly.GetLexiconOutput)
func (*PollyDouble) GetLexiconWithContext ¶
func (d *PollyDouble) GetLexiconWithContext(i0 context.Context, i1 *polly.GetLexiconInput, i2 ...request.Option) (r0 *polly.GetLexiconOutput, r1 error)
func (*PollyDouble) GetSpeechSynthesisTask ¶
func (d *PollyDouble) GetSpeechSynthesisTask(i0 *polly.GetSpeechSynthesisTaskInput) (r0 *polly.GetSpeechSynthesisTaskOutput, r1 error)
func (*PollyDouble) GetSpeechSynthesisTaskRequest ¶
func (d *PollyDouble) GetSpeechSynthesisTaskRequest(i0 *polly.GetSpeechSynthesisTaskInput) (r0 *request.Request, r1 *polly.GetSpeechSynthesisTaskOutput)
func (*PollyDouble) GetSpeechSynthesisTaskWithContext ¶
func (d *PollyDouble) GetSpeechSynthesisTaskWithContext(i0 context.Context, i1 *polly.GetSpeechSynthesisTaskInput, i2 ...request.Option) (r0 *polly.GetSpeechSynthesisTaskOutput, r1 error)
func (*PollyDouble) ListLexicons ¶
func (d *PollyDouble) ListLexicons(i0 *polly.ListLexiconsInput) (r0 *polly.ListLexiconsOutput, r1 error)
func (*PollyDouble) ListLexiconsRequest ¶
func (d *PollyDouble) ListLexiconsRequest(i0 *polly.ListLexiconsInput) (r0 *request.Request, r1 *polly.ListLexiconsOutput)
func (*PollyDouble) ListLexiconsWithContext ¶
func (d *PollyDouble) ListLexiconsWithContext(i0 context.Context, i1 *polly.ListLexiconsInput, i2 ...request.Option) (r0 *polly.ListLexiconsOutput, r1 error)
func (*PollyDouble) ListSpeechSynthesisTasks ¶
func (d *PollyDouble) ListSpeechSynthesisTasks(i0 *polly.ListSpeechSynthesisTasksInput) (r0 *polly.ListSpeechSynthesisTasksOutput, r1 error)
func (*PollyDouble) ListSpeechSynthesisTasksPages ¶
func (d *PollyDouble) ListSpeechSynthesisTasksPages(i0 *polly.ListSpeechSynthesisTasksInput, i1 func(*polly.ListSpeechSynthesisTasksOutput, bool) bool) (r0 error)
func (*PollyDouble) ListSpeechSynthesisTasksPagesWithContext ¶
func (d *PollyDouble) ListSpeechSynthesisTasksPagesWithContext(i0 context.Context, i1 *polly.ListSpeechSynthesisTasksInput, i2 func(*polly.ListSpeechSynthesisTasksOutput, bool) bool, i3 ...request.Option) (r0 error)
func (*PollyDouble) ListSpeechSynthesisTasksRequest ¶
func (d *PollyDouble) ListSpeechSynthesisTasksRequest(i0 *polly.ListSpeechSynthesisTasksInput) (r0 *request.Request, r1 *polly.ListSpeechSynthesisTasksOutput)
func (*PollyDouble) ListSpeechSynthesisTasksWithContext ¶
func (d *PollyDouble) ListSpeechSynthesisTasksWithContext(i0 context.Context, i1 *polly.ListSpeechSynthesisTasksInput, i2 ...request.Option) (r0 *polly.ListSpeechSynthesisTasksOutput, r1 error)
func (*PollyDouble) PutLexicon ¶
func (d *PollyDouble) PutLexicon(i0 *polly.PutLexiconInput) (r0 *polly.PutLexiconOutput, r1 error)
func (*PollyDouble) PutLexiconRequest ¶
func (d *PollyDouble) PutLexiconRequest(i0 *polly.PutLexiconInput) (r0 *request.Request, r1 *polly.PutLexiconOutput)
func (*PollyDouble) PutLexiconWithContext ¶
func (d *PollyDouble) PutLexiconWithContext(i0 context.Context, i1 *polly.PutLexiconInput, i2 ...request.Option) (r0 *polly.PutLexiconOutput, r1 error)
func (*PollyDouble) StartSpeechSynthesisTask ¶
func (d *PollyDouble) StartSpeechSynthesisTask(i0 *polly.StartSpeechSynthesisTaskInput) (r0 *polly.StartSpeechSynthesisTaskOutput, r1 error)
func (*PollyDouble) StartSpeechSynthesisTaskRequest ¶
func (d *PollyDouble) StartSpeechSynthesisTaskRequest(i0 *polly.StartSpeechSynthesisTaskInput) (r0 *request.Request, r1 *polly.StartSpeechSynthesisTaskOutput)
func (*PollyDouble) StartSpeechSynthesisTaskWithContext ¶
func (d *PollyDouble) StartSpeechSynthesisTaskWithContext(i0 context.Context, i1 *polly.StartSpeechSynthesisTaskInput, i2 ...request.Option) (r0 *polly.StartSpeechSynthesisTaskOutput, r1 error)
func (*PollyDouble) SynthesizeSpeech ¶
func (d *PollyDouble) SynthesizeSpeech(i0 *polly.SynthesizeSpeechInput) (r0 *polly.SynthesizeSpeechOutput, r1 error)
func (*PollyDouble) SynthesizeSpeechRequest ¶
func (d *PollyDouble) SynthesizeSpeechRequest(i0 *polly.SynthesizeSpeechInput) (r0 *request.Request, r1 *polly.SynthesizeSpeechOutput)
func (*PollyDouble) SynthesizeSpeechWithContext ¶
func (d *PollyDouble) SynthesizeSpeechWithContext(i0 context.Context, i1 *polly.SynthesizeSpeechInput, i2 ...request.Option) (r0 *polly.SynthesizeSpeechOutput, r1 error)