mockpool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	mock.Mock
}

Pool is an autogenerated mock type for the Pool type

func NewPool

func NewPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *Pool

NewPool creates a new instance of Pool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Pool) Add

func (_m *Pool) Add(ctx context.Context, instance pool.Instance) error

Add provides a mock function with given fields: ctx, instance

func (*Pool) Call

func (_m *Pool) Call(functionName string, args interface{}, mode pool.Mode) ([]interface{}, error)

Call provides a mock function with given fields: functionName, args, mode

func (*Pool) Call16

func (_m *Pool) Call16(functionName string, args interface{}, mode pool.Mode) ([]interface{}, error)

Call16 provides a mock function with given fields: functionName, args, mode

func (*Pool) Call16Async

func (_m *Pool) Call16Async(functionName string, args interface{}, mode pool.Mode) *tarantool.Future

Call16Async provides a mock function with given fields: functionName, args, mode

func (*Pool) Call16Typed

func (_m *Pool) Call16Typed(functionName string, args interface{}, result interface{}, mode pool.Mode) error

Call16Typed provides a mock function with given fields: functionName, args, result, mode

func (*Pool) Call17

func (_m *Pool) Call17(functionName string, args interface{}, mode pool.Mode) ([]interface{}, error)

Call17 provides a mock function with given fields: functionName, args, mode

func (*Pool) Call17Async

func (_m *Pool) Call17Async(functionName string, args interface{}, mode pool.Mode) *tarantool.Future

Call17Async provides a mock function with given fields: functionName, args, mode

func (*Pool) Call17Typed

func (_m *Pool) Call17Typed(functionName string, args interface{}, result interface{}, mode pool.Mode) error

Call17Typed provides a mock function with given fields: functionName, args, result, mode

func (*Pool) CallAsync

func (_m *Pool) CallAsync(functionName string, args interface{}, mode pool.Mode) *tarantool.Future

CallAsync provides a mock function with given fields: functionName, args, mode

func (*Pool) CallTyped

func (_m *Pool) CallTyped(functionName string, args interface{}, result interface{}, mode pool.Mode) error

CallTyped provides a mock function with given fields: functionName, args, result, mode

func (*Pool) Close

func (_m *Pool) Close() []error

Close provides a mock function with given fields:

func (*Pool) CloseGraceful

func (_m *Pool) CloseGraceful() []error

CloseGraceful provides a mock function with given fields:

func (*Pool) ConfiguredTimeout

func (_m *Pool) ConfiguredTimeout(mode pool.Mode) (time.Duration, error)

ConfiguredTimeout provides a mock function with given fields: mode

func (*Pool) ConnectedNow

func (_m *Pool) ConnectedNow(mode pool.Mode) (bool, error)

ConnectedNow provides a mock function with given fields: mode

func (*Pool) Delete

func (_m *Pool) Delete(space interface{}, index interface{}, key interface{}, mode ...pool.Mode) ([]interface{}, error)

Delete provides a mock function with given fields: space, index, key, mode

func (*Pool) DeleteAsync

func (_m *Pool) DeleteAsync(space interface{}, index interface{}, key interface{}, mode ...pool.Mode) *tarantool.Future

DeleteAsync provides a mock function with given fields: space, index, key, mode

func (*Pool) DeleteTyped

func (_m *Pool) DeleteTyped(space interface{}, index interface{}, key interface{}, result interface{}, mode ...pool.Mode) error

DeleteTyped provides a mock function with given fields: space, index, key, result, mode

func (*Pool) Do

func (_m *Pool) Do(req tarantool.Request, mode pool.Mode) *tarantool.Future

Do provides a mock function with given fields: req, mode

func (*Pool) Eval

func (_m *Pool) Eval(expr string, args interface{}, mode pool.Mode) ([]interface{}, error)

Eval provides a mock function with given fields: expr, args, mode

func (*Pool) EvalAsync

func (_m *Pool) EvalAsync(expr string, args interface{}, mode pool.Mode) *tarantool.Future

EvalAsync provides a mock function with given fields: expr, args, mode

func (*Pool) EvalTyped

func (_m *Pool) EvalTyped(expr string, args interface{}, result interface{}, mode pool.Mode) error

EvalTyped provides a mock function with given fields: expr, args, result, mode

func (*Pool) Execute

func (_m *Pool) Execute(expr string, args interface{}, mode pool.Mode) ([]interface{}, error)

Execute provides a mock function with given fields: expr, args, mode

func (*Pool) ExecuteAsync

func (_m *Pool) ExecuteAsync(expr string, args interface{}, mode pool.Mode) *tarantool.Future

ExecuteAsync provides a mock function with given fields: expr, args, mode

func (*Pool) ExecuteTyped

func (_m *Pool) ExecuteTyped(expr string, args interface{}, result interface{}, mode pool.Mode) (tarantool.SQLInfo, []tarantool.ColumnMetaData, error)

ExecuteTyped provides a mock function with given fields: expr, args, result, mode

func (*Pool) GetTyped

func (_m *Pool) GetTyped(space interface{}, index interface{}, key interface{}, result interface{}, mode ...pool.Mode) error

GetTyped provides a mock function with given fields: space, index, key, result, mode

func (*Pool) Insert

func (_m *Pool) Insert(space interface{}, tuple interface{}, mode ...pool.Mode) ([]interface{}, error)

Insert provides a mock function with given fields: space, tuple, mode

func (*Pool) InsertAsync

func (_m *Pool) InsertAsync(space interface{}, tuple interface{}, mode ...pool.Mode) *tarantool.Future

InsertAsync provides a mock function with given fields: space, tuple, mode

func (*Pool) InsertTyped

func (_m *Pool) InsertTyped(space interface{}, tuple interface{}, result interface{}, mode ...pool.Mode) error

InsertTyped provides a mock function with given fields: space, tuple, result, mode

func (*Pool) NewPrepared

func (_m *Pool) NewPrepared(expr string, mode pool.Mode) (*tarantool.Prepared, error)

NewPrepared provides a mock function with given fields: expr, mode

func (*Pool) NewStream

func (_m *Pool) NewStream(mode pool.Mode) (*tarantool.Stream, error)

NewStream provides a mock function with given fields: mode

func (*Pool) NewWatcher

func (_m *Pool) NewWatcher(key string, callback tarantool.WatchCallback, mode pool.Mode) (tarantool.Watcher, error)

NewWatcher provides a mock function with given fields: key, callback, mode

func (*Pool) Ping

func (_m *Pool) Ping(mode pool.Mode) ([]interface{}, error)

Ping provides a mock function with given fields: mode

func (*Pool) Remove

func (_m *Pool) Remove(name string) error

Remove provides a mock function with given fields: name

func (*Pool) Replace

func (_m *Pool) Replace(space interface{}, tuple interface{}, mode ...pool.Mode) ([]interface{}, error)

Replace provides a mock function with given fields: space, tuple, mode

func (*Pool) ReplaceAsync

func (_m *Pool) ReplaceAsync(space interface{}, tuple interface{}, mode ...pool.Mode) *tarantool.Future

ReplaceAsync provides a mock function with given fields: space, tuple, mode

func (*Pool) ReplaceTyped

func (_m *Pool) ReplaceTyped(space interface{}, tuple interface{}, result interface{}, mode ...pool.Mode) error

ReplaceTyped provides a mock function with given fields: space, tuple, result, mode

func (*Pool) Select

func (_m *Pool) Select(space interface{}, index interface{}, offset uint32, limit uint32, iterator tarantool.Iter, key interface{}, mode ...pool.Mode) ([]interface{}, error)

Select provides a mock function with given fields: space, index, offset, limit, iterator, key, mode

func (*Pool) SelectAsync

func (_m *Pool) SelectAsync(space interface{}, index interface{}, offset uint32, limit uint32, iterator tarantool.Iter, key interface{}, mode ...pool.Mode) *tarantool.Future

SelectAsync provides a mock function with given fields: space, index, offset, limit, iterator, key, mode

func (*Pool) SelectTyped

func (_m *Pool) SelectTyped(space interface{}, index interface{}, offset uint32, limit uint32, iterator tarantool.Iter, key interface{}, result interface{}, mode ...pool.Mode) error

SelectTyped provides a mock function with given fields: space, index, offset, limit, iterator, key, result, mode

func (*Pool) Update

func (_m *Pool) Update(space interface{}, index interface{}, key interface{}, ops *tarantool.Operations, mode ...pool.Mode) ([]interface{}, error)

Update provides a mock function with given fields: space, index, key, ops, mode

func (*Pool) UpdateAsync

func (_m *Pool) UpdateAsync(space interface{}, index interface{}, key interface{}, ops *tarantool.Operations, mode ...pool.Mode) *tarantool.Future

UpdateAsync provides a mock function with given fields: space, index, key, ops, mode

func (*Pool) UpdateTyped

func (_m *Pool) UpdateTyped(space interface{}, index interface{}, key interface{}, ops *tarantool.Operations, result interface{}, mode ...pool.Mode) error

UpdateTyped provides a mock function with given fields: space, index, key, ops, result, mode

func (*Pool) Upsert

func (_m *Pool) Upsert(space interface{}, tuple interface{}, ops *tarantool.Operations, mode ...pool.Mode) ([]interface{}, error)

Upsert provides a mock function with given fields: space, tuple, ops, mode

func (*Pool) UpsertAsync

func (_m *Pool) UpsertAsync(space interface{}, tuple interface{}, ops *tarantool.Operations, mode ...pool.Mode) *tarantool.Future

UpsertAsync provides a mock function with given fields: space, tuple, ops, mode

Jump to

Keyboard shortcuts

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