pidouble

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 pidouble contains test double implementation of piiface.PIAPI

Package pidouble provides a TestDouble implementation of piiface.PIAPI

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 PIDouble

type PIDouble struct {
	piiface.PIAPI
	*awsdouble.AWSTestDouble
}

PIDouble is TestDouble for piiface.PIAPI

func NewDouble

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

Constructor for PIDouble 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 (*PIDouble) DescribeDimensionKeys

func (d *PIDouble) DescribeDimensionKeys(i0 *pi.DescribeDimensionKeysInput) (r0 *pi.DescribeDimensionKeysOutput, r1 error)

func (*PIDouble) DescribeDimensionKeysRequest

func (d *PIDouble) DescribeDimensionKeysRequest(i0 *pi.DescribeDimensionKeysInput) (r0 *request.Request, r1 *pi.DescribeDimensionKeysOutput)

func (*PIDouble) DescribeDimensionKeysWithContext

func (d *PIDouble) DescribeDimensionKeysWithContext(i0 context.Context, i1 *pi.DescribeDimensionKeysInput, i2 ...request.Option) (r0 *pi.DescribeDimensionKeysOutput, r1 error)

func (*PIDouble) GetResourceMetrics

func (d *PIDouble) GetResourceMetrics(i0 *pi.GetResourceMetricsInput) (r0 *pi.GetResourceMetricsOutput, r1 error)

func (*PIDouble) GetResourceMetricsRequest

func (d *PIDouble) GetResourceMetricsRequest(i0 *pi.GetResourceMetricsInput) (r0 *request.Request, r1 *pi.GetResourceMetricsOutput)

func (*PIDouble) GetResourceMetricsWithContext

func (d *PIDouble) GetResourceMetricsWithContext(i0 context.Context, i1 *pi.GetResourceMetricsInput, i2 ...request.Option) (r0 *pi.GetResourceMetricsOutput, r1 error)

Jump to

Keyboard shortcuts

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