mockdb

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mockdb is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) CreateAccount

func (m *MockStore) CreateAccount(arg0 context.Context, arg1 string) (db.Account, error)

CreateAccount mocks base method.

func (*MockStore) CreateSession

func (m *MockStore) CreateSession(arg0 context.Context, arg1 db.CreateSessionParams) (db.Session, error)

CreateSession mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) GetAccountByOwner

func (m *MockStore) GetAccountByOwner(arg0 context.Context, arg1 string) (db.Account, error)

GetAccountByOwner mocks base method.

func (*MockStore) GetSession

func (m *MockStore) GetSession(arg0 context.Context, arg1 uuid.UUID) (db.Session, error)

GetSession mocks base method.

func (*MockStore) RevokeAccountSessions

func (m *MockStore) RevokeAccountSessions(arg0 context.Context, arg1 string) (pgconn.CommandTag, error)

RevokeAccountSessions mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) CreateAccount

func (mr *MockStoreMockRecorder) CreateAccount(arg0, arg1 any) *gomock.Call

CreateAccount indicates an expected call of CreateAccount.

func (*MockStoreMockRecorder) CreateSession

func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 any) *gomock.Call

CreateSession indicates an expected call of CreateSession.

func (*MockStoreMockRecorder) GetAccountByOwner

func (mr *MockStoreMockRecorder) GetAccountByOwner(arg0, arg1 any) *gomock.Call

GetAccountByOwner indicates an expected call of GetAccountByOwner.

func (*MockStoreMockRecorder) GetSession

func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 any) *gomock.Call

GetSession indicates an expected call of GetSession.

func (*MockStoreMockRecorder) RevokeAccountSessions

func (mr *MockStoreMockRecorder) RevokeAccountSessions(arg0, arg1 any) *gomock.Call

RevokeAccountSessions indicates an expected call of RevokeAccountSessions.

Jump to

Keyboard shortcuts

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