mock_spanner

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_spanner is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDB

type MockDB struct {
	// contains filtered or unexported fields
}

MockDB is a mock of DB interface.

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance.

func (*MockDB) DestroySession

func (m *MockDB) DestroySession(ctx context.Context, sessionID ccc.UUID) error

DestroySession mocks base method.

func (*MockDB) DestroySessionOIDC

func (m *MockDB) DestroySessionOIDC(ctx context.Context, oidcSID string) error

DestroySessionOIDC mocks base method.

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDB) InsertSession

func (m *MockDB) InsertSession(ctx context.Context, session *spanner.InsertSession) (ccc.UUID, error)

InsertSession mocks base method.

func (*MockDB) Session

func (m *MockDB) Session(ctx context.Context, sessionID ccc.UUID) (*spanner.Session, error)

Session mocks base method.

func (*MockDB) UpdateSessionActivity

func (m *MockDB) UpdateSessionActivity(ctx context.Context, sessionID ccc.UUID) error

UpdateSessionActivity mocks base method.

type MockDBMockRecorder

type MockDBMockRecorder struct {
	// contains filtered or unexported fields
}

MockDBMockRecorder is the mock recorder for MockDB.

func (*MockDBMockRecorder) DestroySession

func (mr *MockDBMockRecorder) DestroySession(ctx, sessionID any) *gomock.Call

DestroySession indicates an expected call of DestroySession.

func (*MockDBMockRecorder) DestroySessionOIDC

func (mr *MockDBMockRecorder) DestroySessionOIDC(ctx, oidcSID any) *gomock.Call

DestroySessionOIDC indicates an expected call of DestroySessionOIDC.

func (*MockDBMockRecorder) InsertSession

func (mr *MockDBMockRecorder) InsertSession(ctx, session any) *gomock.Call

InsertSession indicates an expected call of InsertSession.

func (*MockDBMockRecorder) Session

func (mr *MockDBMockRecorder) Session(ctx, sessionID any) *gomock.Call

Session indicates an expected call of Session.

func (*MockDBMockRecorder) UpdateSessionActivity

func (mr *MockDBMockRecorder) UpdateSessionActivity(ctx, sessionID any) *gomock.Call

UpdateSessionActivity indicates an expected call of UpdateSessionActivity.

Jump to

Keyboard shortcuts

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