mock_postgres

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_postgres 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, sessionInfo *postgres.InsertSession) (ccc.UUID, error)

InsertSession mocks base method.

func (*MockDB) Session

func (m *MockDB) Session(ctx context.Context, sessionID ccc.UUID) (*postgres.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, sessionInfo 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.

type MockQueryer

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

MockQueryer is a mock of Queryer interface.

func NewMockQueryer

func NewMockQueryer(ctrl *gomock.Controller) *MockQueryer

NewMockQueryer creates a new mock instance.

func (*MockQueryer) Begin

func (m *MockQueryer) Begin(ctx context.Context) (pgx.Tx, error)

Begin mocks base method.

func (*MockQueryer) EXPECT

func (m *MockQueryer) EXPECT() *MockQueryerMockRecorder

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

func (*MockQueryer) Exec

func (m *MockQueryer) Exec(ctx context.Context, query string, args ...any) (pgconn.CommandTag, error)

Exec mocks base method.

func (*MockQueryer) Query

func (m *MockQueryer) Query(ctx context.Context, query string, args ...any) (pgx.Rows, error)

Query mocks base method.

func (*MockQueryer) QueryRow

func (m *MockQueryer) QueryRow(ctx context.Context, query string, args ...any) pgx.Row

QueryRow mocks base method.

type MockQueryerMockRecorder

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

MockQueryerMockRecorder is the mock recorder for MockQueryer.

func (*MockQueryerMockRecorder) Begin

func (mr *MockQueryerMockRecorder) Begin(ctx any) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockQueryerMockRecorder) Exec

func (mr *MockQueryerMockRecorder) Exec(ctx, query any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockQueryerMockRecorder) Query

func (mr *MockQueryerMockRecorder) Query(ctx, query any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockQueryerMockRecorder) QueryRow

func (mr *MockQueryerMockRecorder) QueryRow(ctx, query any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

Jump to

Keyboard shortcuts

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