Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadOnlyTransaction ¶
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 ¶
func (_m *ReadOnlyTransaction) Query(ctx context.Context, statement spanner.Statement) spannerclient.RowIterator
Query provides a mock function with given fields: ctx, statement
type Row ¶
Row is an autogenerated mock type for the Row type
type RowIterator ¶
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 ¶
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 ¶
func (_m *SpannerClient) Single() spannerclient.ReadOnlyTransaction
Single provides a mock function with no fields