stubs

package
v0.0.0-...-e995d3a Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package stubs defines service action stubs that are used by both the action and scenario unit tests.

Each stub expects specific data as input and returns specific data as an output. If an error is specified, it is raised by the stubber.

Package stubs defines service action stubs that are used by both the action and scenario unit tests.

Each stub expects specific data as input and returns specific data as an output. If an error is specified, it is raised by the stubber.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StubAddMovie

func StubAddMovie(tableName string, item map[string]types.AttributeValue, raiseErr *testtools.StubError) testtools.Stub

func StubAddMovieBatch

func StubAddMovieBatch(tableName string, inputRequests []types.WriteRequest, raiseErr *testtools.StubError) testtools.Stub

func StubBatchExecuteStatement

func StubBatchExecuteStatement(
	statements []string, paramList [][]interface{}, outputs []interface{},
	raiseErr *testtools.StubError) testtools.Stub

func StubCreateTable

func StubCreateTable(tableName string, raiseErr *testtools.StubError) testtools.Stub

func StubDeleteItem

func StubDeleteItem(tableName string, key map[string]types.AttributeValue, raiseErr *testtools.StubError) testtools.Stub

func StubDeleteTable

func StubDeleteTable(tableName string, raiseErr *testtools.StubError) testtools.Stub

func StubDescribeTable

func StubDescribeTable(tableName string, raiseErr *testtools.StubError) testtools.Stub

func StubExecuteStatement

func StubExecuteStatement(
	statement string, params []interface{}, output interface{},
	raiseErr *testtools.StubError) testtools.Stub

func StubGetMovie

func StubGetMovie(
	tableName string, key map[string]types.AttributeValue, title string, year string, rating string, plot string,
	raiseErr *testtools.StubError) testtools.Stub

func StubListTables

func StubListTables(tableNames []string, raiseErr *testtools.StubError) testtools.Stub

func StubQuery

func StubQuery(tableName string, title string, year string, raiseErr *testtools.StubError) testtools.Stub

func StubScan

func StubScan(tableName string, title string, startYear string, endYear string, raiseErr *testtools.StubError) testtools.Stub

func StubUpdateMovie

func StubUpdateMovie(
	tableName string, key map[string]types.AttributeValue, rating string, plot string, raiseErr *testtools.StubError) testtools.Stub

Types

This section is empty.

Jump to

Keyboard shortcuts

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