mocks

package
v0.0.0-...-9809e3c Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFlatRepo

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

MockFlatRepo is a mock of FlatRepo interface.

func NewMockFlatRepo

func NewMockFlatRepo(ctrl *gomock.Controller) *MockFlatRepo

NewMockFlatRepo creates a new mock instance.

func (*MockFlatRepo) CreateFlat

func (m *MockFlatRepo) CreateFlat(ctx context.Context, flat *dto.DtoFlat) (*dto.DtoFlat, error)

CreateFlat mocks base method.

func (*MockFlatRepo) EXPECT

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

func (*MockFlatRepo) GetFlatByHouseID

func (m *MockFlatRepo) GetFlatByHouseID(ctx context.Context, houseID int, userType string) ([]*dto.DtoFlat, error)

GetFlatByHouseID mocks base method.

func (*MockFlatRepo) GetFlatByID

func (m *MockFlatRepo) GetFlatByID(ctx context.Context, id int) (*dto.DtoFlat, error)

GetFlatByID mocks base method.

func (*MockFlatRepo) UpdateFlat

func (m *MockFlatRepo) UpdateFlat(ctx context.Context, flat *dto.DtoFlat) (*dto.DtoFlat, error)

UpdateFlat mocks base method.

type MockFlatRepoMockRecorder

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

MockFlatRepoMockRecorder is the mock recorder for MockFlatRepo.

func (*MockFlatRepoMockRecorder) CreateFlat

func (mr *MockFlatRepoMockRecorder) CreateFlat(ctx, flat any) *gomock.Call

CreateFlat indicates an expected call of CreateFlat.

func (*MockFlatRepoMockRecorder) GetFlatByHouseID

func (mr *MockFlatRepoMockRecorder) GetFlatByHouseID(ctx, houseID, userType any) *gomock.Call

GetFlatByHouseID indicates an expected call of GetFlatByHouseID.

func (*MockFlatRepoMockRecorder) GetFlatByID

func (mr *MockFlatRepoMockRecorder) GetFlatByID(ctx, id any) *gomock.Call

GetFlatByID indicates an expected call of GetFlatByID.

func (*MockFlatRepoMockRecorder) UpdateFlat

func (mr *MockFlatRepoMockRecorder) UpdateFlat(ctx, flat any) *gomock.Call

UpdateFlat indicates an expected call of UpdateFlat.

type MockHouseFlatRepo

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

MockHouseFlatRepo is a mock of HouseFlatRepo interface.

func NewMockHouseFlatRepo

func NewMockHouseFlatRepo(ctrl *gomock.Controller) *MockHouseFlatRepo

NewMockHouseFlatRepo creates a new mock instance.

func (*MockHouseFlatRepo) EXPECT

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

func (*MockHouseFlatRepo) UpdateHouse

func (m *MockHouseFlatRepo) UpdateHouse(ctx context.Context, id int, updAt time.Time) (*dto.House, error)

UpdateHouse mocks base method.

type MockHouseFlatRepoMockRecorder

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

MockHouseFlatRepoMockRecorder is the mock recorder for MockHouseFlatRepo.

func (*MockHouseFlatRepoMockRecorder) UpdateHouse

func (mr *MockHouseFlatRepoMockRecorder) UpdateHouse(ctx, id, updAt any) *gomock.Call

UpdateHouse indicates an expected call of UpdateHouse.

type MockHouseRepo

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

MockHouseRepo is a mock of HouseRepo interface.

func NewMockHouseRepo

func NewMockHouseRepo(ctrl *gomock.Controller) *MockHouseRepo

NewMockHouseRepo creates a new mock instance.

func (*MockHouseRepo) CreateHouse

func (m *MockHouseRepo) CreateHouse(ctx context.Context, house *dto.House) (*dto.House, error)

CreateHouse mocks base method.

func (*MockHouseRepo) EXPECT

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

type MockHouseRepoMockRecorder

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

MockHouseRepoMockRecorder is the mock recorder for MockHouseRepo.

func (*MockHouseRepoMockRecorder) CreateHouse

func (mr *MockHouseRepoMockRecorder) CreateHouse(ctx, house any) *gomock.Call

CreateHouse indicates an expected call of CreateHouse.

type MockUserRepo

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

MockUserRepo is a mock of UserRepo interface.

func NewMockUserRepo

func NewMockUserRepo(ctrl *gomock.Controller) *MockUserRepo

NewMockUserRepo creates a new mock instance.

func (*MockUserRepo) CreateUser

func (m *MockUserRepo) CreateUser(ctx context.Context, user repository.User) error

CreateUser mocks base method.

func (*MockUserRepo) EXPECT

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

func (*MockUserRepo) GetUser

func (m *MockUserRepo) GetUser(ctx context.Context, email string) (repository.User, error)

GetUser mocks base method.

type MockUserRepoMockRecorder

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

MockUserRepoMockRecorder is the mock recorder for MockUserRepo.

func (*MockUserRepoMockRecorder) CreateUser

func (mr *MockUserRepoMockRecorder) CreateUser(ctx, user any) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockUserRepoMockRecorder) GetUser

func (mr *MockUserRepoMockRecorder) GetUser(ctx, email any) *gomock.Call

GetUser indicates an expected call of GetUser.

Jump to

Keyboard shortcuts

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