58 lines
1.7 KiB
Go
58 lines
1.7 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: galaxy/lobby/internal/ports (interfaces: UserService)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -destination=../adapters/mocks/mock_userservice.go -package=mocks galaxy/lobby/internal/ports UserService
|
|
//
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
ports "galaxy/lobby/internal/ports"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockUserService is a mock of UserService interface.
|
|
type MockUserService struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockUserServiceMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockUserServiceMockRecorder is the mock recorder for MockUserService.
|
|
type MockUserServiceMockRecorder struct {
|
|
mock *MockUserService
|
|
}
|
|
|
|
// NewMockUserService creates a new mock instance.
|
|
func NewMockUserService(ctrl *gomock.Controller) *MockUserService {
|
|
mock := &MockUserService{ctrl: ctrl}
|
|
mock.recorder = &MockUserServiceMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetEligibility mocks base method.
|
|
func (m *MockUserService) GetEligibility(ctx context.Context, userID string) (ports.Eligibility, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetEligibility", ctx, userID)
|
|
ret0, _ := ret[0].(ports.Eligibility)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetEligibility indicates an expected call of GetEligibility.
|
|
func (mr *MockUserServiceMockRecorder) GetEligibility(ctx, userID any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEligibility", reflect.TypeOf((*MockUserService)(nil).GetEligibility), ctx, userID)
|
|
}
|