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 ¶
- func StubAddMovie(tableName string, item map[string]types.AttributeValue, ...) testtools.Stub
- func StubAddMovieBatch(tableName string, inputRequests []types.WriteRequest, ...) testtools.Stub
- func StubBatchExecuteStatement(statements []string, paramList [][]interface{}, outputs []interface{}, ...) testtools.Stub
- func StubCreateTable(tableName string, raiseErr *testtools.StubError) testtools.Stub
- func StubDeleteItem(tableName string, key map[string]types.AttributeValue, ...) testtools.Stub
- func StubDeleteTable(tableName string, raiseErr *testtools.StubError) testtools.Stub
- func StubDescribeTable(tableName string, raiseErr *testtools.StubError) testtools.Stub
- func StubExecuteStatement(statement string, params []interface{}, output interface{}, ...) testtools.Stub
- func StubGetMovie(tableName string, key map[string]types.AttributeValue, title string, ...) testtools.Stub
- func StubListTables(tableNames []string, raiseErr *testtools.StubError) testtools.Stub
- func StubQuery(tableName string, title string, year string, raiseErr *testtools.StubError) testtools.Stub
- func StubScan(tableName string, title string, startYear string, endYear string, ...) testtools.Stub
- func StubUpdateMovie(tableName string, key map[string]types.AttributeValue, rating string, ...) testtools.Stub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StubAddMovie ¶
func StubAddMovieBatch ¶
func StubCreateTable ¶
func StubDeleteItem ¶
func StubDeleteTable ¶
func StubDescribeTable ¶
func StubExecuteStatement ¶
func StubGetMovie ¶
func StubListTables ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.