mockdb

package
v0.0.0-...-16e7fcc Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ./internal/db/sqlc/store.go

Generated by this command:

mockgen -source ./internal/db/sqlc/store.go -package mockdb -destination internal/db/mock/store.go Store

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) CreateAbsence

func (m *MockStore) CreateAbsence(ctx context.Context, arg sqlc.CreateAbsenceParams) (sqlc.Absence, error)

CreateAbsence mocks base method.

func (*MockStore) CreateCompany

func (m *MockStore) CreateCompany(ctx context.Context, name string) (sqlc.Company, error)

CreateCompany mocks base method.

func (*MockStore) CreateEntry

func (m *MockStore) CreateEntry(ctx context.Context, arg sqlc.CreateEntryParams) (sqlc.Entry, error)

CreateEntry mocks base method.

func (*MockStore) CreateSession

func (m *MockStore) CreateSession(ctx context.Context, arg sqlc.CreateSessionParams) (sqlc.Session, error)

CreateSession mocks base method.

func (*MockStore) CreateTeam

func (m *MockStore) CreateTeam(ctx context.Context, arg sqlc.CreateTeamParams) (sqlc.Team, error)

CreateTeam mocks base method.

func (*MockStore) CreateUser

func (m *MockStore) CreateUser(ctx context.Context, arg sqlc.CreateUserParams) (sqlc.User, error)

CreateUser mocks base method.

func (*MockStore) DeleteAbsence

func (m *MockStore) DeleteAbsence(ctx context.Context, id int64) (sqlc.Absence, error)

DeleteAbsence mocks base method.

func (*MockStore) DeleteCompany

func (m *MockStore) DeleteCompany(ctx context.Context, id int64) (sqlc.Company, error)

DeleteCompany mocks base method.

func (*MockStore) DeleteEntry

func (m *MockStore) DeleteEntry(ctx context.Context, id int64) (sqlc.Entry, error)

DeleteEntry mocks base method.

func (*MockStore) DeleteTeam

func (m *MockStore) DeleteTeam(ctx context.Context, id int64) (sqlc.Team, error)

DeleteTeam mocks base method.

func (*MockStore) DeleteUser

func (m *MockStore) DeleteUser(ctx context.Context, id int64) (sqlc.User, error)

DeleteUser 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) GetAbsence

func (m *MockStore) GetAbsence(ctx context.Context, id int64) (sqlc.Absence, error)

GetAbsence mocks base method.

func (*MockStore) GetCompany

func (m *MockStore) GetCompany(ctx context.Context, id int64) (sqlc.Company, error)

GetCompany mocks base method.

func (*MockStore) GetEntry

func (m *MockStore) GetEntry(ctx context.Context, id int64) (sqlc.Entry, error)

GetEntry mocks base method.

func (*MockStore) GetSession

func (m *MockStore) GetSession(ctx context.Context, id uuid.UUID) (sqlc.Session, error)

GetSession mocks base method.

func (*MockStore) GetTeam

func (m *MockStore) GetTeam(ctx context.Context, id int64) (sqlc.Team, error)

GetTeam mocks base method.

func (*MockStore) GetUser

func (m *MockStore) GetUser(ctx context.Context, id int64) (sqlc.User, error)

GetUser mocks base method.

func (*MockStore) GetUserByEmail

func (m *MockStore) GetUserByEmail(ctx context.Context, email string) (sqlc.User, error)

GetUserByEmail mocks base method.

func (*MockStore) GetUserByUsername

func (m *MockStore) GetUserByUsername(ctx context.Context, username string) (sqlc.User, error)

GetUserByUsername mocks base method.

func (*MockStore) ListAbsences

func (m *MockStore) ListAbsences(ctx context.Context, arg sqlc.ListAbsencesParams) ([]sqlc.Absence, error)

ListAbsences mocks base method.

func (*MockStore) ListCompanies

func (m *MockStore) ListCompanies(ctx context.Context, arg sqlc.ListCompaniesParams) ([]sqlc.Company, error)

ListCompanies mocks base method.

func (*MockStore) ListCompanyEmployees

func (m *MockStore) ListCompanyEmployees(ctx context.Context, arg sqlc.ListCompanyEmployeesParams) ([]sqlc.User, error)

ListCompanyEmployees mocks base method.

func (*MockStore) ListEntries

func (m *MockStore) ListEntries(ctx context.Context, arg sqlc.ListEntriesParams) ([]sqlc.Entry, error)

ListEntries mocks base method.

func (*MockStore) ListTeamMembers

func (m *MockStore) ListTeamMembers(ctx context.Context, arg sqlc.ListTeamMembersParams) ([]sqlc.User, error)

ListTeamMembers mocks base method.

func (*MockStore) ListTeams

func (m *MockStore) ListTeams(ctx context.Context, arg sqlc.ListTeamsParams) ([]sqlc.Team, error)

ListTeams mocks base method.

func (*MockStore) ListUserAbsences

func (m *MockStore) ListUserAbsences(ctx context.Context, arg sqlc.ListUserAbsencesParams) ([]sqlc.Absence, error)

ListUserAbsences mocks base method.

func (*MockStore) ListUserEntries

func (m *MockStore) ListUserEntries(ctx context.Context, arg sqlc.ListUserEntriesParams) ([]sqlc.Entry, error)

ListUserEntries mocks base method.

func (*MockStore) ListUsers

func (m *MockStore) ListUsers(ctx context.Context, arg sqlc.ListUsersParams) ([]sqlc.User, error)

ListUsers mocks base method.

func (*MockStore) SeedDatabase

func (m *MockStore) SeedDatabase(ctx context.Context, config config.Config) error

SeedDatabase mocks base method.

func (*MockStore) UpdateAbsence

func (m *MockStore) UpdateAbsence(ctx context.Context, arg sqlc.UpdateAbsenceParams) (sqlc.Absence, error)

UpdateAbsence mocks base method.

func (*MockStore) UpdateCompany

func (m *MockStore) UpdateCompany(ctx context.Context, arg sqlc.UpdateCompanyParams) (sqlc.Company, error)

UpdateCompany mocks base method.

func (*MockStore) UpdateEntry

func (m *MockStore) UpdateEntry(ctx context.Context, arg sqlc.UpdateEntryParams) (sqlc.Entry, error)

UpdateEntry mocks base method.

func (*MockStore) UpdateTeam

func (m *MockStore) UpdateTeam(ctx context.Context, arg sqlc.UpdateTeamParams) (sqlc.Team, error)

UpdateTeam mocks base method.

func (*MockStore) UpdateUser

func (m *MockStore) UpdateUser(ctx context.Context, arg sqlc.UpdateUserParams) (sqlc.User, error)

UpdateUser mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) CreateAbsence

func (mr *MockStoreMockRecorder) CreateAbsence(ctx, arg any) *gomock.Call

CreateAbsence indicates an expected call of CreateAbsence.

func (*MockStoreMockRecorder) CreateCompany

func (mr *MockStoreMockRecorder) CreateCompany(ctx, name any) *gomock.Call

CreateCompany indicates an expected call of CreateCompany.

func (*MockStoreMockRecorder) CreateEntry

func (mr *MockStoreMockRecorder) CreateEntry(ctx, arg any) *gomock.Call

CreateEntry indicates an expected call of CreateEntry.

func (*MockStoreMockRecorder) CreateSession

func (mr *MockStoreMockRecorder) CreateSession(ctx, arg any) *gomock.Call

CreateSession indicates an expected call of CreateSession.

func (*MockStoreMockRecorder) CreateTeam

func (mr *MockStoreMockRecorder) CreateTeam(ctx, arg any) *gomock.Call

CreateTeam indicates an expected call of CreateTeam.

func (*MockStoreMockRecorder) CreateUser

func (mr *MockStoreMockRecorder) CreateUser(ctx, arg any) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockStoreMockRecorder) DeleteAbsence

func (mr *MockStoreMockRecorder) DeleteAbsence(ctx, id any) *gomock.Call

DeleteAbsence indicates an expected call of DeleteAbsence.

func (*MockStoreMockRecorder) DeleteCompany

func (mr *MockStoreMockRecorder) DeleteCompany(ctx, id any) *gomock.Call

DeleteCompany indicates an expected call of DeleteCompany.

func (*MockStoreMockRecorder) DeleteEntry

func (mr *MockStoreMockRecorder) DeleteEntry(ctx, id any) *gomock.Call

DeleteEntry indicates an expected call of DeleteEntry.

func (*MockStoreMockRecorder) DeleteTeam

func (mr *MockStoreMockRecorder) DeleteTeam(ctx, id any) *gomock.Call

DeleteTeam indicates an expected call of DeleteTeam.

func (*MockStoreMockRecorder) DeleteUser

func (mr *MockStoreMockRecorder) DeleteUser(ctx, id any) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockStoreMockRecorder) GetAbsence

func (mr *MockStoreMockRecorder) GetAbsence(ctx, id any) *gomock.Call

GetAbsence indicates an expected call of GetAbsence.

func (*MockStoreMockRecorder) GetCompany

func (mr *MockStoreMockRecorder) GetCompany(ctx, id any) *gomock.Call

GetCompany indicates an expected call of GetCompany.

func (*MockStoreMockRecorder) GetEntry

func (mr *MockStoreMockRecorder) GetEntry(ctx, id any) *gomock.Call

GetEntry indicates an expected call of GetEntry.

func (*MockStoreMockRecorder) GetSession

func (mr *MockStoreMockRecorder) GetSession(ctx, id any) *gomock.Call

GetSession indicates an expected call of GetSession.

func (*MockStoreMockRecorder) GetTeam

func (mr *MockStoreMockRecorder) GetTeam(ctx, id any) *gomock.Call

GetTeam indicates an expected call of GetTeam.

func (*MockStoreMockRecorder) GetUser

func (mr *MockStoreMockRecorder) GetUser(ctx, id any) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockStoreMockRecorder) GetUserByEmail

func (mr *MockStoreMockRecorder) GetUserByEmail(ctx, email any) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockStoreMockRecorder) GetUserByUsername

func (mr *MockStoreMockRecorder) GetUserByUsername(ctx, username any) *gomock.Call

GetUserByUsername indicates an expected call of GetUserByUsername.

func (*MockStoreMockRecorder) ListAbsences

func (mr *MockStoreMockRecorder) ListAbsences(ctx, arg any) *gomock.Call

ListAbsences indicates an expected call of ListAbsences.

func (*MockStoreMockRecorder) ListCompanies

func (mr *MockStoreMockRecorder) ListCompanies(ctx, arg any) *gomock.Call

ListCompanies indicates an expected call of ListCompanies.

func (*MockStoreMockRecorder) ListCompanyEmployees

func (mr *MockStoreMockRecorder) ListCompanyEmployees(ctx, arg any) *gomock.Call

ListCompanyEmployees indicates an expected call of ListCompanyEmployees.

func (*MockStoreMockRecorder) ListEntries

func (mr *MockStoreMockRecorder) ListEntries(ctx, arg any) *gomock.Call

ListEntries indicates an expected call of ListEntries.

func (*MockStoreMockRecorder) ListTeamMembers

func (mr *MockStoreMockRecorder) ListTeamMembers(ctx, arg any) *gomock.Call

ListTeamMembers indicates an expected call of ListTeamMembers.

func (*MockStoreMockRecorder) ListTeams

func (mr *MockStoreMockRecorder) ListTeams(ctx, arg any) *gomock.Call

ListTeams indicates an expected call of ListTeams.

func (*MockStoreMockRecorder) ListUserAbsences

func (mr *MockStoreMockRecorder) ListUserAbsences(ctx, arg any) *gomock.Call

ListUserAbsences indicates an expected call of ListUserAbsences.

func (*MockStoreMockRecorder) ListUserEntries

func (mr *MockStoreMockRecorder) ListUserEntries(ctx, arg any) *gomock.Call

ListUserEntries indicates an expected call of ListUserEntries.

func (*MockStoreMockRecorder) ListUsers

func (mr *MockStoreMockRecorder) ListUsers(ctx, arg any) *gomock.Call

ListUsers indicates an expected call of ListUsers.

func (*MockStoreMockRecorder) SeedDatabase

func (mr *MockStoreMockRecorder) SeedDatabase(ctx, config any) *gomock.Call

SeedDatabase indicates an expected call of SeedDatabase.

func (*MockStoreMockRecorder) UpdateAbsence

func (mr *MockStoreMockRecorder) UpdateAbsence(ctx, arg any) *gomock.Call

UpdateAbsence indicates an expected call of UpdateAbsence.

func (*MockStoreMockRecorder) UpdateCompany

func (mr *MockStoreMockRecorder) UpdateCompany(ctx, arg any) *gomock.Call

UpdateCompany indicates an expected call of UpdateCompany.

func (*MockStoreMockRecorder) UpdateEntry

func (mr *MockStoreMockRecorder) UpdateEntry(ctx, arg any) *gomock.Call

UpdateEntry indicates an expected call of UpdateEntry.

func (*MockStoreMockRecorder) UpdateTeam

func (mr *MockStoreMockRecorder) UpdateTeam(ctx, arg any) *gomock.Call

UpdateTeam indicates an expected call of UpdateTeam.

func (*MockStoreMockRecorder) UpdateUser

func (mr *MockStoreMockRecorder) UpdateUser(ctx, arg any) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

Jump to

Keyboard shortcuts

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