mock

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAnswerRepository

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

MockAnswerRepository is a mock of AnswerRepository interface.

func NewMockAnswerRepository

func NewMockAnswerRepository(ctrl *gomock.Controller) *MockAnswerRepository

NewMockAnswerRepository creates a new mock instance.

func (*MockAnswerRepository) CreateAnswers

func (m *MockAnswerRepository) CreateAnswers(ctx context.Context, answers *[]model.Answer) error

CreateAnswers mocks base method.

func (*MockAnswerRepository) EXPECT

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

func (*MockAnswerRepository) GetAnswerByID

func (m *MockAnswerRepository) GetAnswerByID(ctx context.Context, id uint) (*model.Answer, error)

GetAnswerByID mocks base method.

func (*MockAnswerRepository) GetAnswersByQuestionID added in v0.3.0

func (m *MockAnswerRepository) GetAnswersByQuestionID(ctx context.Context, questionID uint) ([]model.Answer, error)

GetAnswersByQuestionID mocks base method.

func (*MockAnswerRepository) GetAnswersByUserAndQuestionGroup

func (m *MockAnswerRepository) GetAnswersByUserAndQuestionGroup(ctx context.Context, userID string, questionGroupID uint) ([]model.Answer, error)

GetAnswersByUserAndQuestionGroup mocks base method.

func (*MockAnswerRepository) UpdateAnswer

func (m *MockAnswerRepository) UpdateAnswer(ctx context.Context, answerID uint, answer *model.Answer) error

UpdateAnswer mocks base method.

type MockAnswerRepositoryMockRecorder

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

MockAnswerRepositoryMockRecorder is the mock recorder for MockAnswerRepository.

func (*MockAnswerRepositoryMockRecorder) CreateAnswers

func (mr *MockAnswerRepositoryMockRecorder) CreateAnswers(ctx, answers any) *gomock.Call

CreateAnswers indicates an expected call of CreateAnswers.

func (*MockAnswerRepositoryMockRecorder) GetAnswerByID

func (mr *MockAnswerRepositoryMockRecorder) GetAnswerByID(ctx, id any) *gomock.Call

GetAnswerByID indicates an expected call of GetAnswerByID.

func (*MockAnswerRepositoryMockRecorder) GetAnswersByQuestionID added in v0.3.0

func (mr *MockAnswerRepositoryMockRecorder) GetAnswersByQuestionID(ctx, questionID any) *gomock.Call

GetAnswersByQuestionID indicates an expected call of GetAnswersByQuestionID.

func (*MockAnswerRepositoryMockRecorder) GetAnswersByUserAndQuestionGroup

func (mr *MockAnswerRepositoryMockRecorder) GetAnswersByUserAndQuestionGroup(ctx, userID, questionGroupID any) *gomock.Call

GetAnswersByUserAndQuestionGroup indicates an expected call of GetAnswersByUserAndQuestionGroup.

func (*MockAnswerRepositoryMockRecorder) UpdateAnswer

func (mr *MockAnswerRepositoryMockRecorder) UpdateAnswer(ctx, answerID, answer any) *gomock.Call

UpdateAnswer indicates an expected call of UpdateAnswer.

type MockCampRepository

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

MockCampRepository is a mock of CampRepository interface.

func NewMockCampRepository

func NewMockCampRepository(ctrl *gomock.Controller) *MockCampRepository

NewMockCampRepository creates a new mock instance.

func (*MockCampRepository) AddCampParticipant

func (m *MockCampRepository) AddCampParticipant(ctx context.Context, campID uint, user *model.User) error

AddCampParticipant mocks base method.

func (*MockCampRepository) CreateCamp

func (m *MockCampRepository) CreateCamp(camp *model.Camp) error

CreateCamp mocks base method.

func (*MockCampRepository) DeleteCamp

func (m *MockCampRepository) DeleteCamp(ctx context.Context, campID uint) error

DeleteCamp mocks base method.

func (*MockCampRepository) EXPECT

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

func (*MockCampRepository) GetCampByID

func (m *MockCampRepository) GetCampByID(id uint) (*model.Camp, error)

GetCampByID mocks base method.

func (*MockCampRepository) GetCampParticipants

func (m *MockCampRepository) GetCampParticipants(ctx context.Context, campID uint) ([]model.User, error)

GetCampParticipants mocks base method.

func (*MockCampRepository) GetCamps

func (m *MockCampRepository) GetCamps() ([]model.Camp, error)

GetCamps mocks base method.

func (*MockCampRepository) IsCampParticipant added in v0.3.0

func (m *MockCampRepository) IsCampParticipant(ctx context.Context, campID uint, userID string) (bool, error)

IsCampParticipant mocks base method.

func (*MockCampRepository) RemoveCampParticipant

func (m *MockCampRepository) RemoveCampParticipant(ctx context.Context, campID uint, user *model.User) error

RemoveCampParticipant mocks base method.

func (*MockCampRepository) UpdateCamp

func (m *MockCampRepository) UpdateCamp(ctx context.Context, campID uint, camp *model.Camp) error

UpdateCamp mocks base method.

type MockCampRepositoryMockRecorder

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

MockCampRepositoryMockRecorder is the mock recorder for MockCampRepository.

func (*MockCampRepositoryMockRecorder) AddCampParticipant

func (mr *MockCampRepositoryMockRecorder) AddCampParticipant(ctx, campID, user any) *gomock.Call

AddCampParticipant indicates an expected call of AddCampParticipant.

func (*MockCampRepositoryMockRecorder) CreateCamp

func (mr *MockCampRepositoryMockRecorder) CreateCamp(camp any) *gomock.Call

CreateCamp indicates an expected call of CreateCamp.

func (*MockCampRepositoryMockRecorder) DeleteCamp

func (mr *MockCampRepositoryMockRecorder) DeleteCamp(ctx, campID any) *gomock.Call

DeleteCamp indicates an expected call of DeleteCamp.

func (*MockCampRepositoryMockRecorder) GetCampByID

func (mr *MockCampRepositoryMockRecorder) GetCampByID(id any) *gomock.Call

GetCampByID indicates an expected call of GetCampByID.

func (*MockCampRepositoryMockRecorder) GetCampParticipants

func (mr *MockCampRepositoryMockRecorder) GetCampParticipants(ctx, campID any) *gomock.Call

GetCampParticipants indicates an expected call of GetCampParticipants.

func (*MockCampRepositoryMockRecorder) GetCamps

func (mr *MockCampRepositoryMockRecorder) GetCamps() *gomock.Call

GetCamps indicates an expected call of GetCamps.

func (*MockCampRepositoryMockRecorder) IsCampParticipant added in v0.3.0

func (mr *MockCampRepositoryMockRecorder) IsCampParticipant(ctx, campID, userID any) *gomock.Call

IsCampParticipant indicates an expected call of IsCampParticipant.

func (*MockCampRepositoryMockRecorder) RemoveCampParticipant

func (mr *MockCampRepositoryMockRecorder) RemoveCampParticipant(ctx, campID, user any) *gomock.Call

RemoveCampParticipant indicates an expected call of RemoveCampParticipant.

func (*MockCampRepositoryMockRecorder) UpdateCamp

func (mr *MockCampRepositoryMockRecorder) UpdateCamp(ctx, campID, camp any) *gomock.Call

UpdateCamp indicates an expected call of UpdateCamp.

type MockEventRepository

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

MockEventRepository is a mock of EventRepository interface.

func NewMockEventRepository

func NewMockEventRepository(ctrl *gomock.Controller) *MockEventRepository

NewMockEventRepository creates a new mock instance.

func (*MockEventRepository) CreateEvent

func (m *MockEventRepository) CreateEvent(event *model.Event) error

CreateEvent mocks base method.

func (*MockEventRepository) DeleteEvent

func (m *MockEventRepository) DeleteEvent(ID uint) error

DeleteEvent mocks base method.

func (*MockEventRepository) EXPECT

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

func (*MockEventRepository) GetEventByID

func (m *MockEventRepository) GetEventByID(id uint) (*model.Event, error)

GetEventByID mocks base method.

func (*MockEventRepository) GetEvents

func (m *MockEventRepository) GetEvents(ctx context.Context, campID uint) ([]model.Event, error)

GetEvents mocks base method.

func (*MockEventRepository) UpdateEvent

func (m *MockEventRepository) UpdateEvent(ctx context.Context, ID uint, event *model.Event) error

UpdateEvent mocks base method.

type MockEventRepositoryMockRecorder

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

MockEventRepositoryMockRecorder is the mock recorder for MockEventRepository.

func (*MockEventRepositoryMockRecorder) CreateEvent

func (mr *MockEventRepositoryMockRecorder) CreateEvent(event any) *gomock.Call

CreateEvent indicates an expected call of CreateEvent.

func (*MockEventRepositoryMockRecorder) DeleteEvent

func (mr *MockEventRepositoryMockRecorder) DeleteEvent(ID any) *gomock.Call

DeleteEvent indicates an expected call of DeleteEvent.

func (*MockEventRepositoryMockRecorder) GetEventByID

func (mr *MockEventRepositoryMockRecorder) GetEventByID(id any) *gomock.Call

GetEventByID indicates an expected call of GetEventByID.

func (*MockEventRepositoryMockRecorder) GetEvents

func (mr *MockEventRepositoryMockRecorder) GetEvents(ctx, campID any) *gomock.Call

GetEvents indicates an expected call of GetEvents.

func (*MockEventRepositoryMockRecorder) UpdateEvent

func (mr *MockEventRepositoryMockRecorder) UpdateEvent(ctx, ID, event any) *gomock.Call

UpdateEvent indicates an expected call of UpdateEvent.

type MockOptionRepository

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

MockOptionRepository is a mock of OptionRepository interface.

func NewMockOptionRepository

func NewMockOptionRepository(ctrl *gomock.Controller) *MockOptionRepository

NewMockOptionRepository creates a new mock instance.

func (*MockOptionRepository) CreateOption

func (m *MockOptionRepository) CreateOption(option *model.Option) error

CreateOption mocks base method.

func (*MockOptionRepository) EXPECT

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

func (*MockOptionRepository) GetOptions

func (m *MockOptionRepository) GetOptions(query *repository.GetOptionsQuery) ([]model.Option, error)

GetOptions mocks base method.

type MockOptionRepositoryMockRecorder

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

MockOptionRepositoryMockRecorder is the mock recorder for MockOptionRepository.

func (*MockOptionRepositoryMockRecorder) CreateOption

func (mr *MockOptionRepositoryMockRecorder) CreateOption(option any) *gomock.Call

CreateOption indicates an expected call of CreateOption.

func (*MockOptionRepositoryMockRecorder) GetOptions

func (mr *MockOptionRepositoryMockRecorder) GetOptions(query any) *gomock.Call

GetOptions indicates an expected call of GetOptions.

type MockPaymentRepository

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

MockPaymentRepository is a mock of PaymentRepository interface.

func NewMockPaymentRepository

func NewMockPaymentRepository(ctrl *gomock.Controller) *MockPaymentRepository

NewMockPaymentRepository creates a new mock instance.

func (*MockPaymentRepository) CreatePayment

func (m *MockPaymentRepository) CreatePayment(ctx context.Context, payment *model.Payment) error

CreatePayment mocks base method.

func (*MockPaymentRepository) EXPECT

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

func (*MockPaymentRepository) GetPayments added in v0.3.0

func (m *MockPaymentRepository) GetPayments(ctx context.Context, campID uint) ([]model.Payment, error)

GetPayments mocks base method.

func (*MockPaymentRepository) UpdatePayment added in v0.3.0

func (m *MockPaymentRepository) UpdatePayment(ctx context.Context, paymentID uint, payment *model.Payment) error

UpdatePayment mocks base method.

type MockPaymentRepositoryMockRecorder

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

MockPaymentRepositoryMockRecorder is the mock recorder for MockPaymentRepository.

func (*MockPaymentRepositoryMockRecorder) CreatePayment

func (mr *MockPaymentRepositoryMockRecorder) CreatePayment(ctx, payment any) *gomock.Call

CreatePayment indicates an expected call of CreatePayment.

func (*MockPaymentRepositoryMockRecorder) GetPayments added in v0.3.0

func (mr *MockPaymentRepositoryMockRecorder) GetPayments(ctx, campID any) *gomock.Call

GetPayments indicates an expected call of GetPayments.

func (*MockPaymentRepositoryMockRecorder) UpdatePayment added in v0.3.0

func (mr *MockPaymentRepositoryMockRecorder) UpdatePayment(ctx, paymentID, payment any) *gomock.Call

UpdatePayment indicates an expected call of UpdatePayment.

type MockQuestionGroupRepository

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

MockQuestionGroupRepository is a mock of QuestionGroupRepository interface.

func NewMockQuestionGroupRepository

func NewMockQuestionGroupRepository(ctrl *gomock.Controller) *MockQuestionGroupRepository

NewMockQuestionGroupRepository creates a new mock instance.

func (*MockQuestionGroupRepository) CreateQuestionGroup

func (m *MockQuestionGroupRepository) CreateQuestionGroup(questionGroup *model.QuestionGroup) error

CreateQuestionGroup mocks base method.

func (*MockQuestionGroupRepository) DeleteQuestionGroup

func (m *MockQuestionGroupRepository) DeleteQuestionGroup(ID uint) error

DeleteQuestionGroup mocks base method.

func (*MockQuestionGroupRepository) EXPECT

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

func (*MockQuestionGroupRepository) GetQuestionGroup

func (m *MockQuestionGroupRepository) GetQuestionGroup(ID uint) (*model.QuestionGroup, error)

GetQuestionGroup mocks base method.

func (*MockQuestionGroupRepository) GetQuestionGroups

func (m *MockQuestionGroupRepository) GetQuestionGroups(ctx context.Context, campID uint) ([]model.QuestionGroup, error)

GetQuestionGroups mocks base method.

func (*MockQuestionGroupRepository) UpdateQuestionGroup

func (m *MockQuestionGroupRepository) UpdateQuestionGroup(ctx context.Context, questionGroupID uint, questionGroup model.QuestionGroup) error

UpdateQuestionGroup mocks base method.

type MockQuestionGroupRepositoryMockRecorder

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

MockQuestionGroupRepositoryMockRecorder is the mock recorder for MockQuestionGroupRepository.

func (*MockQuestionGroupRepositoryMockRecorder) CreateQuestionGroup

func (mr *MockQuestionGroupRepositoryMockRecorder) CreateQuestionGroup(questionGroup any) *gomock.Call

CreateQuestionGroup indicates an expected call of CreateQuestionGroup.

func (*MockQuestionGroupRepositoryMockRecorder) DeleteQuestionGroup

func (mr *MockQuestionGroupRepositoryMockRecorder) DeleteQuestionGroup(ID any) *gomock.Call

DeleteQuestionGroup indicates an expected call of DeleteQuestionGroup.

func (*MockQuestionGroupRepositoryMockRecorder) GetQuestionGroup

func (mr *MockQuestionGroupRepositoryMockRecorder) GetQuestionGroup(ID any) *gomock.Call

GetQuestionGroup indicates an expected call of GetQuestionGroup.

func (*MockQuestionGroupRepositoryMockRecorder) GetQuestionGroups

func (mr *MockQuestionGroupRepositoryMockRecorder) GetQuestionGroups(ctx, campID any) *gomock.Call

GetQuestionGroups indicates an expected call of GetQuestionGroups.

func (*MockQuestionGroupRepositoryMockRecorder) UpdateQuestionGroup

func (mr *MockQuestionGroupRepositoryMockRecorder) UpdateQuestionGroup(ctx, questionGroupID, questionGroup any) *gomock.Call

UpdateQuestionGroup indicates an expected call of UpdateQuestionGroup.

type MockQuestionRepository

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

MockQuestionRepository is a mock of QuestionRepository interface.

func NewMockQuestionRepository

func NewMockQuestionRepository(ctrl *gomock.Controller) *MockQuestionRepository

NewMockQuestionRepository creates a new mock instance.

func (*MockQuestionRepository) CreateQuestion

func (m *MockQuestionRepository) CreateQuestion(question *model.Question) error

CreateQuestion mocks base method.

func (*MockQuestionRepository) DeleteQuestionByID

func (m *MockQuestionRepository) DeleteQuestionByID(id uint) error

DeleteQuestionByID mocks base method.

func (*MockQuestionRepository) EXPECT

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

func (*MockQuestionRepository) GetQuestionByID

func (m *MockQuestionRepository) GetQuestionByID(id uint) (*model.Question, error)

GetQuestionByID mocks base method.

func (*MockQuestionRepository) GetQuestions

func (m *MockQuestionRepository) GetQuestions() ([]model.Question, error)

GetQuestions mocks base method.

func (*MockQuestionRepository) UpdateQuestion

func (m *MockQuestionRepository) UpdateQuestion(ctx context.Context, questionID uint, question *model.Question) error

UpdateQuestion mocks base method.

type MockQuestionRepositoryMockRecorder

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

MockQuestionRepositoryMockRecorder is the mock recorder for MockQuestionRepository.

func (*MockQuestionRepositoryMockRecorder) CreateQuestion

func (mr *MockQuestionRepositoryMockRecorder) CreateQuestion(question any) *gomock.Call

CreateQuestion indicates an expected call of CreateQuestion.

func (*MockQuestionRepositoryMockRecorder) DeleteQuestionByID

func (mr *MockQuestionRepositoryMockRecorder) DeleteQuestionByID(id any) *gomock.Call

DeleteQuestionByID indicates an expected call of DeleteQuestionByID.

func (*MockQuestionRepositoryMockRecorder) GetQuestionByID

func (mr *MockQuestionRepositoryMockRecorder) GetQuestionByID(id any) *gomock.Call

GetQuestionByID indicates an expected call of GetQuestionByID.

func (*MockQuestionRepositoryMockRecorder) GetQuestions

func (mr *MockQuestionRepositoryMockRecorder) GetQuestions() *gomock.Call

GetQuestions indicates an expected call of GetQuestions.

func (*MockQuestionRepositoryMockRecorder) UpdateQuestion

func (mr *MockQuestionRepositoryMockRecorder) UpdateQuestion(ctx, questionID, question any) *gomock.Call

UpdateQuestion indicates an expected call of UpdateQuestion.

type MockRoomRepository

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

MockRoomRepository is a mock of RoomRepository interface.

func NewMockRoomRepository

func NewMockRoomRepository(ctrl *gomock.Controller) *MockRoomRepository

NewMockRoomRepository creates a new mock instance.

func (*MockRoomRepository) CreateRoom

func (m *MockRoomRepository) CreateRoom(room *model.Room) error

CreateRoom mocks base method.

func (*MockRoomRepository) EXPECT

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

func (*MockRoomRepository) GetRoomByID

func (m *MockRoomRepository) GetRoomByID(id uint) (*model.Room, error)

GetRoomByID mocks base method.

func (*MockRoomRepository) GetRooms

func (m *MockRoomRepository) GetRooms() ([]model.Room, error)

GetRooms mocks base method.

func (*MockRoomRepository) UpdateRoom

func (m *MockRoomRepository) UpdateRoom(room *model.Room) error

UpdateRoom mocks base method.

type MockRoomRepositoryMockRecorder

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

MockRoomRepositoryMockRecorder is the mock recorder for MockRoomRepository.

func (*MockRoomRepositoryMockRecorder) CreateRoom

func (mr *MockRoomRepositoryMockRecorder) CreateRoom(room any) *gomock.Call

CreateRoom indicates an expected call of CreateRoom.

func (*MockRoomRepositoryMockRecorder) GetRoomByID

func (mr *MockRoomRepositoryMockRecorder) GetRoomByID(id any) *gomock.Call

GetRoomByID indicates an expected call of GetRoomByID.

func (*MockRoomRepositoryMockRecorder) GetRooms

func (mr *MockRoomRepositoryMockRecorder) GetRooms() *gomock.Call

GetRooms indicates an expected call of GetRooms.

func (*MockRoomRepositoryMockRecorder) UpdateRoom

func (mr *MockRoomRepositoryMockRecorder) UpdateRoom(room any) *gomock.Call

UpdateRoom indicates an expected call of UpdateRoom.

type MockUserRepository

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

MockUserRepository is a mock of UserRepository interface.

func NewMockUserRepository

func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository

NewMockUserRepository creates a new mock instance.

func (*MockUserRepository) EXPECT

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

func (*MockUserRepository) GetOrCreateUser

func (m *MockUserRepository) GetOrCreateUser(ctx context.Context, traqID string) (*model.User, error)

GetOrCreateUser mocks base method.

func (*MockUserRepository) GetStaffs

func (m *MockUserRepository) GetStaffs() ([]model.User, error)

GetStaffs mocks base method.

func (*MockUserRepository) GetUserTraqID

func (m *MockUserRepository) GetUserTraqID(ID uint) (string, error)

GetUserTraqID mocks base method.

func (*MockUserRepository) UpdateUser

func (m *MockUserRepository) UpdateUser(ctx context.Context, user *model.User) error

UpdateUser mocks base method.

type MockUserRepositoryMockRecorder

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

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.

func (*MockUserRepositoryMockRecorder) GetOrCreateUser

func (mr *MockUserRepositoryMockRecorder) GetOrCreateUser(ctx, traqID any) *gomock.Call

GetOrCreateUser indicates an expected call of GetOrCreateUser.

func (*MockUserRepositoryMockRecorder) GetStaffs

func (mr *MockUserRepositoryMockRecorder) GetStaffs() *gomock.Call

GetStaffs indicates an expected call of GetStaffs.

func (*MockUserRepositoryMockRecorder) GetUserTraqID

func (mr *MockUserRepositoryMockRecorder) GetUserTraqID(ID any) *gomock.Call

GetUserTraqID indicates an expected call of GetUserTraqID.

func (*MockUserRepositoryMockRecorder) UpdateUser

func (mr *MockUserRepositoryMockRecorder) UpdateUser(ctx, user 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