Documentation
¶
Index ¶
- type MockLinkRepository
- func (_m *MockLinkRepository) CreateLink(link *domain.Link) error
- func (_m *MockLinkRepository) DeactivateLink(link *domain.Link) error
- func (_m *MockLinkRepository) GetLinkByID(linkID uint) (*domain.Link, error)
- func (_m *MockLinkRepository) GetLinkByURL(url string) (*domain.Link, error)
- func (_m *MockLinkRepository) GetLinksByUserID(userID uint) ([]*domain.Link, error)
- type MockLinkService
- type MockUserRepository
- type MockUserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLinkRepository ¶
MockLinkRepository is an autogenerated mock type for the LinkRepository type
func NewMockLinkRepository ¶
func NewMockLinkRepository(t testing.TB) *MockLinkRepository
NewMockLinkRepository creates a new instance of MockLinkRepository. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockLinkRepository) CreateLink ¶
func (_m *MockLinkRepository) CreateLink(link *domain.Link) error
CreateLink provides a mock function with given fields: link
func (*MockLinkRepository) DeactivateLink ¶
func (_m *MockLinkRepository) DeactivateLink(link *domain.Link) error
DeactivateLink provides a mock function with given fields: link
func (*MockLinkRepository) GetLinkByID ¶
func (_m *MockLinkRepository) GetLinkByID(linkID uint) (*domain.Link, error)
GetLinkByID provides a mock function with given fields: linkID
func (*MockLinkRepository) GetLinkByURL ¶
func (_m *MockLinkRepository) GetLinkByURL(url string) (*domain.Link, error)
GetLinkByURL provides a mock function with given fields: url
func (*MockLinkRepository) GetLinksByUserID ¶
func (_m *MockLinkRepository) GetLinksByUserID(userID uint) ([]*domain.Link, error)
GetLinksByUserID provides a mock function with given fields: userID
type MockLinkService ¶
MockLinkService is an autogenerated mock type for the LinkService type
func NewMockLinkService ¶
func NewMockLinkService(t testing.TB) *MockLinkService
NewMockLinkService creates a new instance of MockLinkService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockLinkService) CreateLink ¶
func (_m *MockLinkService) CreateLink(link *domain.Link) error
CreateLink provides a mock function with given fields: link
func (*MockLinkService) DeactivateLink ¶
func (_m *MockLinkService) DeactivateLink(linkID uint) error
DeactivateLink provides a mock function with given fields: linkID
func (*MockLinkService) GetAllLinks ¶
func (_m *MockLinkService) GetAllLinks(ownerID uint) ([]*domain.Link, error)
GetAllLinks provides a mock function with given fields: ownerID
type MockUserRepository ¶
MockUserRepository is an autogenerated mock type for the UserRepository type
func NewMockUserRepository ¶
func NewMockUserRepository(t testing.TB) *MockUserRepository
NewMockUserRepository creates a new instance of MockUserRepository. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockUserRepository) GetUserByEmail ¶
func (_m *MockUserRepository) GetUserByEmail(email string) (*domain.User, error)
GetUserByEmail provides a mock function with given fields: email
func (*MockUserRepository) GetUserByID ¶
func (_m *MockUserRepository) GetUserByID(userID uint) (*domain.User, error)
GetUserByID provides a mock function with given fields: userID
type MockUserService ¶
MockUserService is an autogenerated mock type for the UserService type
func NewMockUserService ¶
func NewMockUserService(t testing.TB) *MockUserService
NewMockUserService creates a new instance of MockUserService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockUserService) GetUser ¶
func (_m *MockUserService) GetUser(userID uint) (*domain.User, error)
GetUser provides a mock function with given fields: userID
func (*MockUserService) GetUserByEmail ¶
func (_m *MockUserService) GetUserByEmail(email string) (*domain.User, error)
GetUserByEmail provides a mock function with given fields: email