mocks

package
v0.0.0-...-d34966d Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 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 ReadOnlyTransaction

type ReadOnlyTransaction struct {
	mock.Mock
}

ReadOnlyTransaction is an autogenerated mock type for the ReadOnlyTransaction type

func NewReadOnlyTransaction

func NewReadOnlyTransaction(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReadOnlyTransaction

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

Query provides a mock function with given fields: ctx, statement

type Row

type Row struct {
	mock.Mock
}

Row is an autogenerated mock type for the Row type

func NewRow

func NewRow(t interface {
	mock.TestingT
	Cleanup(func())
}) *Row

NewRow creates a new instance of Row. 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 (*Row) ToStruct

func (_m *Row) ToStruct(p interface{}) error

ToStruct provides a mock function with given fields: p

type RowIterator

type RowIterator struct {
	mock.Mock
}

RowIterator is an autogenerated mock type for the RowIterator type

func NewRowIterator

func NewRowIterator(t interface {
	mock.TestingT
	Cleanup(func())
}) *RowIterator

NewRowIterator creates a new instance of RowIterator. 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 (*RowIterator) Next

func (_m *RowIterator) Next() (spannerclient.Row, error)

Next provides a mock function with no fields

func (*RowIterator) Stop

func (_m *RowIterator) Stop()

Stop provides a mock function with no fields

type SpannerClient

type SpannerClient struct {
	mock.Mock
}

SpannerClient is an autogenerated mock type for the SpannerClient type

func NewSpannerClient

func NewSpannerClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpannerClient

NewSpannerClient creates a new instance of SpannerClient. 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 (*SpannerClient) Apply

func (_m *SpannerClient) Apply(ctx context.Context, ms []*spanner.Mutation, opts ...spanner.ApplyOption) (time.Time, error)

Apply provides a mock function with given fields: ctx, ms, opts

func (*SpannerClient) Close

func (_m *SpannerClient) Close()

Close provides a mock function with no fields

func (*SpannerClient) Single

Single provides a mock function with no fields

Jump to

Keyboard shortcuts

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