fake

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

func NewDatabase

func NewDatabase(t NewDatabaseT) *Database

NewDatabase creates a new instance of Database. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Database) DeleteNetwork

func (_m *Database) DeleteNetwork(ctx context.Context, id string) error

DeleteNetwork provides a mock function with given fields: ctx, id

func (*Database) DeletePool

func (_m *Database) DeletePool(ctx context.Context, region string) error

DeletePool provides a mock function with given fields: ctx, region

func (*Database) DeleteProvider

func (_m *Database) DeleteProvider(ctx context.Context, name string) error

DeleteProvider provides a mock function with given fields: ctx, name

func (*Database) GetNetwork

func (_m *Database) GetNetwork(ctx context.Context, id string) (*types.Network, error)

GetNetwork provides a mock function with given fields: ctx, id

func (*Database) GetPool

func (_m *Database) GetPool(ctx context.Context, region string) (*types.Pool, error)

GetPool provides a mock function with given fields: ctx, region

func (*Database) GetProvider

func (_m *Database) GetProvider(ctx context.Context, name string) (*types.Provider, error)

GetProvider provides a mock function with given fields: ctx, name

func (*Database) PutNetwork

func (_m *Database) PutNetwork(ctx context.Context, n *types.Network) error

PutNetwork provides a mock function with given fields: ctx, n

func (*Database) PutPool

func (_m *Database) PutPool(ctx context.Context, p *types.Pool) error

PutPool provides a mock function with given fields: ctx, p

func (*Database) PutProvider

func (_m *Database) PutProvider(ctx context.Context, p *types.Provider) error

PutProvider provides a mock function with given fields: ctx, p

func (*Database) ScanNetworks

func (_m *Database) ScanNetworks(ctx context.Context) ([]*types.Network, error)

ScanNetworks provides a mock function with given fields: ctx

func (*Database) ScanPools

func (_m *Database) ScanPools(ctx context.Context) ([]*types.Pool, error)

ScanPools provides a mock function with given fields: ctx

func (*Database) ScanProviders

func (_m *Database) ScanProviders(ctx context.Context) ([]*types.Provider, error)

ScanProviders provides a mock function with given fields: ctx

type DynamoClient

type DynamoClient struct {
	mock.Mock
}

DynamoClient is an autogenerated mock type for the DynamoClient type

func NewDynamoClient

func NewDynamoClient(t NewDynamoClientT) *DynamoClient

NewDynamoClient creates a new instance of DynamoClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DynamoClient) DeleteItem

func (_m *DynamoClient) DeleteItem(ctx context.Context, params *dynamodb.DeleteItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DeleteItemOutput, error)

DeleteItem provides a mock function with given fields: ctx, params, optFns

func (*DynamoClient) GetItem

func (_m *DynamoClient) GetItem(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error)

GetItem provides a mock function with given fields: ctx, params, optFns

func (*DynamoClient) PutItem

func (_m *DynamoClient) PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error)

PutItem provides a mock function with given fields: ctx, params, optFns

func (*DynamoClient) Scan

func (_m *DynamoClient) Scan(_a0 context.Context, _a1 *dynamodb.ScanInput, _a2 ...func(*dynamodb.Options)) (*dynamodb.ScanOutput, error)

Scan provides a mock function with given fields: _a0, _a1, _a2

type NewDatabaseT

type NewDatabaseT interface {
	mock.TestingT
	Cleanup(func())
}

type NewDynamoClientT

type NewDynamoClientT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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