mocks

package
v0.0.0-...-3ee563d Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLinkRepository

type MockLinkRepository struct {
	mock.Mock
}

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 (_m *MockLinkRepository) CreateLink(link *domain.Link) error

CreateLink provides a mock function with given fields: link

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

type MockLinkService struct {
	mock.Mock
}

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 (_m *MockLinkService) CreateLink(link *domain.Link) error

CreateLink provides a mock function with given fields: link

func (_m *MockLinkService) DeactivateLink(linkID uint) error

DeactivateLink provides a mock function with given fields: linkID

func (_m *MockLinkService) GetAllLinks(ownerID uint) ([]*domain.Link, error)

GetAllLinks provides a mock function with given fields: ownerID

func (_m *MockLinkService) GetLink(shortPath string) (*domain.Link, error)

GetLink provides a mock function with given fields: shortPath

type MockUserRepository

type MockUserRepository struct {
	mock.Mock
}

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

type MockUserService struct {
	mock.Mock
}

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

func (*MockUserService) Login

func (_m *MockUserService) Login(_a0 *domain.User) (string, error)

Login provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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