mocks

package
v0.0.0-...-29610b7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryRepository

type CategoryRepository struct {
	mock.Mock
}

CategoryRepository is an autogenerated mock type for the CategoryRepository type

func NewCategoryRepository

func NewCategoryRepository(t mockConstructorTestingTNewCategoryRepository) *CategoryRepository

NewCategoryRepository creates a new instance of CategoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CategoryRepository) GetByID

func (_m *CategoryRepository) GetByID(ctx context.Context, id int64) (domain.Category, error)

GetByID provides a mock function with given fields: ctx, id

type DataTagRepository

type DataTagRepository struct {
	mock.Mock
}

DataTagRepository is an autogenerated mock type for the DataTagRepository type

func NewDataTagRepository

func NewDataTagRepository(t mockConstructorTestingTNewDataTagRepository) *DataTagRepository

NewDataTagRepository creates a new instance of DataTagRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DataTagRepository) DeleteDataTag

func (_m *DataTagRepository) DeleteDataTag(ctx context.Context, id int64, _a2 string, tx *sql.Tx) error

DeleteDataTag provides a mock function with given fields: ctx, id, _a2, tx

func (*DataTagRepository) FetchDataTags

func (_m *DataTagRepository) FetchDataTags(ctx context.Context, id int64, _a2 string) ([]domain.DataTag, error)

FetchDataTags provides a mock function with given fields: ctx, id, _a2

func (*DataTagRepository) StoreDataTag

func (_m *DataTagRepository) StoreDataTag(ctx context.Context, dt *domain.DataTag, tx *sql.Tx) error

StoreDataTag provides a mock function with given fields: ctx, dt, tx

type EventRepository

type EventRepository struct {
	mock.Mock
}

EventRepository is an autogenerated mock type for the EventRepository type

func NewEventRepository

func NewEventRepository(t mockConstructorTestingTNewEventRepository) *EventRepository

NewEventRepository creates a new instance of EventRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EventRepository) AgendaPortal

func (_m *EventRepository) AgendaPortal(ctx context.Context, params *domain.Request) ([]domain.Event, int64, error)

AgendaPortal provides a mock function with given fields: ctx, params

func (*EventRepository) Delete

func (_m *EventRepository) Delete(ctx context.Context, id int64) error

Delete provides a mock function with given fields: ctx, id

func (*EventRepository) Fetch

func (_m *EventRepository) Fetch(ctx context.Context, params *domain.Request) ([]domain.Event, int64, error)

Fetch provides a mock function with given fields: ctx, params

func (*EventRepository) GetByID

func (_m *EventRepository) GetByID(ctx context.Context, id int64) (domain.Event, error)

GetByID provides a mock function with given fields: ctx, id

func (*EventRepository) GetByTitle

func (_m *EventRepository) GetByTitle(ctx context.Context, title string) (domain.Event, error)

GetByTitle provides a mock function with given fields: ctx, title

func (*EventRepository) GetTx

func (_m *EventRepository) GetTx(ctx context.Context) (*sql.Tx, error)

GetTx provides a mock function with given fields: ctx

func (*EventRepository) ListCalendar

func (_m *EventRepository) ListCalendar(ctx context.Context, params *domain.Request) ([]domain.Event, error)

ListCalendar provides a mock function with given fields: ctx, params

func (*EventRepository) Store

func (_m *EventRepository) Store(ctx context.Context, body *domain.StoreRequestEvent, tx *sql.Tx) error

Store provides a mock function with given fields: ctx, body, tx

func (*EventRepository) Update

func (_m *EventRepository) Update(ctx context.Context, id int64, body *domain.StoreRequestEvent, tx *sql.Tx) error

Update provides a mock function with given fields: ctx, id, body, tx

type FeedbackRepository

type FeedbackRepository struct {
	mock.Mock
}

FeedbackRepository is an autogenerated mock type for the FeedbackRepository type

func NewFeedbackRepository

func NewFeedbackRepository(t mockConstructorTestingTNewFeedbackRepository) *FeedbackRepository

NewFeedbackRepository creates a new instance of FeedbackRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FeedbackRepository) Store

Store provides a mock function with given fields: ctx, a

type GeneralInformationRepository

type GeneralInformationRepository struct {
	mock.Mock
}

GeneralInformationRepository is an autogenerated mock type for the GeneralInformationRepository type

func NewGeneralInformationRepository

func NewGeneralInformationRepository(t mockConstructorTestingTNewGeneralInformationRepository) *GeneralInformationRepository

NewGeneralInformationRepository creates a new instance of GeneralInformationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GeneralInformationRepository) GetByID

GetByID provides a mock function with given fields: ctx, id

func (*GeneralInformationRepository) GetTx

GetTx provides a mock function with given fields: _a0

func (*GeneralInformationRepository) Store

Store provides a mock function with given fields: _a0, _a1, _a2

func (*GeneralInformationRepository) Update

Update provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*GeneralInformationRepository) UpdateSlug

UpdateSlug provides a mock function with given fields: _a0, _a1, _a2, _a3

type GovernmentAffairRepository

type GovernmentAffairRepository struct {
	mock.Mock
}

GovernmentAffairRepository is an autogenerated mock type for the GovernmentAffairRepository type

func NewGovernmentAffairRepository

func NewGovernmentAffairRepository(t mockConstructorTestingTNewGovernmentAffairRepository) *GovernmentAffairRepository

NewGovernmentAffairRepository creates a new instance of GovernmentAffairRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GovernmentAffairRepository) Fetch

Fetch provides a mock function with given fields: ctx

type NewsCategoryRepository

type NewsCategoryRepository struct {
	mock.Mock
}

NewsCategoryRepository is an autogenerated mock type for the NewsCategoryRepository type

func (*NewsCategoryRepository) GetByID

GetByID provides a mock function with given fields: ctx, id

type NewsRepository

type NewsRepository struct {
	mock.Mock
}

NewsRepository is an autogenerated mock type for the NewsRepository type

func (*NewsRepository) AddView

func (_m *NewsRepository) AddView(ctx context.Context, id int64) error

AddView provides a mock function with given fields: ctx, id

func (*NewsRepository) Fetch

func (_m *NewsRepository) Fetch(ctx context.Context, params *domain.Request) ([]domain.News, int64, error)

Fetch provides a mock function with given fields: ctx, params

func (*NewsRepository) GetByID

func (_m *NewsRepository) GetByID(ctx context.Context, id int64) (domain.News, error)

GetByID provides a mock function with given fields: ctx, id

type PopUpBannerRepository

type PopUpBannerRepository struct {
	mock.Mock
}

PopUpBannerRepository is an autogenerated mock type for the PopUpBannerRepository type

func NewPopUpBannerRepository

func NewPopUpBannerRepository(t mockConstructorTestingTNewPopUpBannerRepository) *PopUpBannerRepository

NewPopUpBannerRepository creates a new instance of PopUpBannerRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PopUpBannerRepository) DeactiveStatus

func (_m *PopUpBannerRepository) DeactiveStatus(ctx context.Context) error

DeactiveStatus provides a mock function with given fields: ctx

func (*PopUpBannerRepository) Delete

func (_m *PopUpBannerRepository) Delete(ctx context.Context, id int64) error

Delete provides a mock function with given fields: ctx, id

func (*PopUpBannerRepository) Fetch

Fetch provides a mock function with given fields: ctx, params

func (*PopUpBannerRepository) GetByID

GetByID provides a mock function with given fields: ctx, id

func (*PopUpBannerRepository) LiveBanner

LiveBanner provides a mock function with given fields: ctx

func (*PopUpBannerRepository) Store

Store provides a mock function with given fields: ctx, body

func (*PopUpBannerRepository) Update

Update provides a mock function with given fields: ctx, id, body

func (*PopUpBannerRepository) UpdateStatus

UpdateStatus provides a mock function with given fields: ctx, id, body

type SearchRepository

type SearchRepository struct {
	mock.Mock
}

SearchRepository is an autogenerated mock type for the SearchRepository type

func NewSearchRepository

func NewSearchRepository(t mockConstructorTestingTNewSearchRepository) *SearchRepository

NewSearchRepository creates a new instance of SearchRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SearchRepository) Delete

func (_m *SearchRepository) Delete(ctx context.Context, indices string, id int, _a3 string) error

Delete provides a mock function with given fields: ctx, indices, id, _a3

func (*SearchRepository) Fetch

func (_m *SearchRepository) Fetch(ctx context.Context, indices string, params *domain.Request) ([]domain.SearchListResponse, int64, interface{}, error)

Fetch provides a mock function with given fields: ctx, indices, params

func (*SearchRepository) SearchSuggestion

func (_m *SearchRepository) SearchSuggestion(ctx context.Context, indices string, params *domain.Request) ([]domain.SuggestResponse, error)

SearchSuggestion provides a mock function with given fields: ctx, indices, params

func (*SearchRepository) Store

func (_m *SearchRepository) Store(ctx context.Context, indices string, body *domain.Search) error

Store provides a mock function with given fields: ctx, indices, body

func (*SearchRepository) Update

func (_m *SearchRepository) Update(ctx context.Context, indices string, id int, body *domain.Search) error

Update provides a mock function with given fields: ctx, indices, id, body

type ServicePublicRepository

type ServicePublicRepository struct {
	mock.Mock
}

ServicePublicRepository is an autogenerated mock type for the ServicePublicRepository type

func NewServicePublicRepository

func NewServicePublicRepository(t mockConstructorTestingTNewServicePublicRepository) *ServicePublicRepository

NewServicePublicRepository creates a new instance of ServicePublicRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ServicePublicRepository) Delete

func (_m *ServicePublicRepository) Delete(_a0 context.Context, _a1 int64) error

Delete provides a mock function with given fields: _a0, _a1

func (*ServicePublicRepository) Fetch

Fetch provides a mock function with given fields: ctx, params

func (*ServicePublicRepository) GetByID

GetByID provides a mock function with given fields: ctx, ID

func (*ServicePublicRepository) GetBySlug

GetBySlug provides a mock function with given fields: ctx, slug

func (*ServicePublicRepository) MetaFetch

func (_m *ServicePublicRepository) MetaFetch(ctx context.Context, params *domain.Request) (int64, string, int64, error)

MetaFetch provides a mock function with given fields: ctx, params

func (*ServicePublicRepository) Store

Store provides a mock function with given fields: _a0, _a1, _a2

func (*ServicePublicRepository) Update

Update provides a mock function with given fields: _a0, _a1, _a2, _a3

type SpbeRalsRepository

type SpbeRalsRepository struct {
	mock.Mock
}

SpbeRalsRepository is an autogenerated mock type for the SpbeRalsRepository type

func NewSpbeRalsRepository

func NewSpbeRalsRepository(t mockConstructorTestingTNewSpbeRalsRepository) *SpbeRalsRepository

NewSpbeRalsRepository creates a new instance of SpbeRalsRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SpbeRalsRepository) Fetch

func (_m *SpbeRalsRepository) Fetch(ctx context.Context) ([]domain.SpbeRals, error)

Fetch provides a mock function with given fields: ctx

type TagRepository

type TagRepository struct {
	mock.Mock
}

TagRepository is an autogenerated mock type for the TagRepository type

func NewTagRepository

func NewTagRepository(t mockConstructorTestingTNewTagRepository) *TagRepository

NewTagRepository creates a new instance of TagRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TagRepository) FetchTag

func (_m *TagRepository) FetchTag(ctx context.Context, param *domain.Request) ([]domain.Tag, int64, error)

FetchTag provides a mock function with given fields: ctx, param

func (*TagRepository) GetTagByName

func (_m *TagRepository) GetTagByName(ctx context.Context, name string) (domain.Tag, error)

GetTagByName provides a mock function with given fields: ctx, name

func (*TagRepository) StoreTag

func (_m *TagRepository) StoreTag(ctx context.Context, t *domain.Tag, tx *sql.Tx) error

StoreTag provides a mock function with given fields: ctx, t, tx

type UptdCabdinRepository

type UptdCabdinRepository struct {
	mock.Mock
}

UptdCabdinRepository is an autogenerated mock type for the UptdCabdinRepository type

func NewUptdCabdinRepository

func NewUptdCabdinRepository(t mockConstructorTestingTNewUptdCabdinRepository) *UptdCabdinRepository

NewUptdCabdinRepository creates a new instance of UptdCabdinRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UptdCabdinRepository) Fetch

Fetch provides a mock function with given fields: ctx

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func NewUserRepository

func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository

NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UserRepository) ChangeEmail

func (_m *UserRepository) ChangeEmail(_a0 context.Context, _a1 uuid.UUID, _a2 string) error

ChangeEmail provides a mock function with given fields: _a0, _a1, _a2

func (*UserRepository) ChangeStatus

func (_m *UserRepository) ChangeStatus(_a0 context.Context, _a1 uuid.UUID, _a2 string) error

ChangeStatus provides a mock function with given fields: _a0, _a1, _a2

func (*UserRepository) Fetch

func (_m *UserRepository) Fetch(_a0 context.Context, _a1 *domain.Request) ([]domain.User, int64, error)

Fetch provides a mock function with given fields: _a0, _a1

func (*UserRepository) GetByEmail

func (_m *UserRepository) GetByEmail(ctx context.Context, email string) (domain.User, error)

GetByEmail provides a mock function with given fields: ctx, email

func (*UserRepository) GetByID

func (_m *UserRepository) GetByID(ctx context.Context, id uuid.UUID) (domain.User, error)

GetByID provides a mock function with given fields: ctx, id

func (*UserRepository) GetByNip

func (_m *UserRepository) GetByNip(ctx context.Context, nip *string) (domain.User, error)

GetByNip provides a mock function with given fields: ctx, nip

func (*UserRepository) SetAsAdmin

func (_m *UserRepository) SetAsAdmin(_a0 context.Context, _a1 uuid.UUID, _a2 int8) error

SetAsAdmin provides a mock function with given fields: _a0, _a1, _a2

func (*UserRepository) Store

func (_m *UserRepository) Store(_a0 context.Context, _a1 *domain.User) error

Store provides a mock function with given fields: _a0, _a1

func (*UserRepository) Update

func (_m *UserRepository) Update(_a0 context.Context, _a1 *domain.User) error

Update provides a mock function with given fields: _a0, _a1

func (*UserRepository) WriteLastActive

func (_m *UserRepository) WriteLastActive(_a0 context.Context, _a1 time.Time, _a2 *domain.User) error

WriteLastActive provides a mock function with given fields: _a0, _a1, _a2

Jump to

Keyboard shortcuts

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