mocks

package
v0.0.0-...-30e45d9 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	mock.Mock
}

Transaction mock

func (*Transaction) Close

func (_m *Transaction) Close() error

Close mock

func (*Transaction) Closed

func (_m *Transaction) Closed() bool

Closed mock

func (*Transaction) Commit

func (_m *Transaction) Commit() error

Commit mock

func (*Transaction) Create

func (_m *Transaction) Create(_a0 *schema.Resource) error

Create mock

func (*Transaction) Delete

func (_m *Transaction) Delete(_a0 *schema.Schema, _a1 interface{}) error

Delete mock

func (*Transaction) Exec

func (_m *Transaction) Exec(sql string, args ...interface{}) error

Exec executes sql in transaction

func (*Transaction) Fetch

func (_m *Transaction) Fetch(_a0 *schema.Schema, _a1 transaction.Filter) (*schema.Resource, error)

Fetch mock

func (*Transaction) List

List mock

func (*Transaction) Query

func (_m *Transaction) Query(_a0 *schema.Schema, _a1 string, _a2 []interface{}) ([]*schema.Resource, error)

Query mock

func (*Transaction) RawTransaction

func (_m *Transaction) RawTransaction() *sqlx.Tx

RawTransaction mock

func (*Transaction) SetIsolationLevel

func (_m *Transaction) SetIsolationLevel(_a0 transaction.Type) error

SetIsolationLevel specify transaction isolation level

func (*Transaction) StateFetch

StateFetch mock

func (*Transaction) StateUpdate

func (_m *Transaction) StateUpdate(_a0 *schema.Resource, _a1 *transaction.ResourceState) error

StateUpdate mock

func (*Transaction) Update

func (_m *Transaction) Update(_a0 *schema.Resource) error

Update mock

Jump to

Keyboard shortcuts

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