mocks

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator

type Iterator struct {
	mock.Mock
}

Iterator is an autogenerated mock type for the Iterator type

func NewIterator added in v1.59.0

func NewIterator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Iterator

NewIterator creates a new instance of Iterator. 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 (*Iterator) Close

func (_m *Iterator) Close() error

Close provides a mock function with given fields:

func (*Iterator) Scan

func (_m *Iterator) Scan(dest ...any) bool

Scan provides a mock function with given fields: dest

type Query

type Query struct {
	mock.Mock
}

Query is an autogenerated mock type for the Query type

func NewQuery added in v1.59.0

func NewQuery(t interface {
	mock.TestingT
	Cleanup(func())
}) *Query

NewQuery creates a new instance of Query. 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 (*Query) Bind

func (_m *Query) Bind(v ...any) cassandra.Query

Bind provides a mock function with given fields: v

func (*Query) Consistency

func (_m *Query) Consistency(level cassandra.Consistency) cassandra.Query

Consistency provides a mock function with given fields: level

func (*Query) Exec

func (_m *Query) Exec() error

Exec provides a mock function with given fields:

func (*Query) Iter

func (_m *Query) Iter() cassandra.Iterator

Iter provides a mock function with given fields:

func (*Query) PageSize

func (_m *Query) PageSize(_a0 int) cassandra.Query

PageSize provides a mock function with given fields: _a0

func (*Query) ScanCAS

func (_m *Query) ScanCAS(dest ...any) (bool, error)

ScanCAS provides a mock function with given fields: dest

func (*Query) String

func (_m *Query) String() string

String provides a mock function with given fields:

type Session

type Session struct {
	mock.Mock
}

Session is an autogenerated mock type for the Session type

func NewSession added in v1.59.0

func NewSession(t interface {
	mock.TestingT
	Cleanup(func())
}) *Session

NewSession creates a new instance of Session. 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 (*Session) Close

func (_m *Session) Close()

Close provides a mock function with given fields:

func (*Session) Query

func (_m *Session) Query(stmt string, values ...any) cassandra.Query

Query provides a mock function with given fields: stmt, values

Jump to

Keyboard shortcuts

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