mocks

package
v0.0.0-...-1b7ffe2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetDoFunc func(req *http.Request) (*http.Response, error)
)

Functions

This section is empty.

Types

type MockAuthRepository

type MockAuthRepository struct {
	mock.Mock
}

func (*MockAuthRepository) CreateAuth

func (a *MockAuthRepository) CreateAuth(userID string, td *di.TokenDetails) error

func (*MockAuthRepository) DeleteRefresh

func (a *MockAuthRepository) DeleteRefresh(refreshUUID string) error

func (*MockAuthRepository) DeleteTokens

func (a *MockAuthRepository) DeleteTokens(authD *di.AccessDetails) error

func (*MockAuthRepository) FetchAuth

func (a *MockAuthRepository) FetchAuth(tokenUUID string) (string, error)

type MockClient

type MockClient struct {
	DoFunc func(req *http.Request) (*http.Response, error)
}

func (*MockClient) Do

func (m *MockClient) Do(req *http.Request) (*http.Response, error)

type MockNegativationRepository

type MockNegativationRepository struct {
	mock.Mock
}

func (*MockNegativationRepository) Delete

func (nr *MockNegativationRepository) Delete(id string) error

func (*MockNegativationRepository) GetAll

func (nr *MockNegativationRepository) GetAll() ([]di.Negativation, error)

func (*MockNegativationRepository) GetByID

func (*MockNegativationRepository) GetOne

func (nr *MockNegativationRepository) GetOne(customerDocument string) ([]di.Negativation, error)

func (*MockNegativationRepository) InsertMany

func (nr *MockNegativationRepository) InsertMany(nList []di.Negativation) error

func (*MockNegativationRepository) InsertOne

func (*MockNegativationRepository) Update

type MockUsersRepository

type MockUsersRepository struct {
	mock.Mock
}

func (*MockUsersRepository) FindAll

func (r *MockUsersRepository) FindAll() ([]di.User, error)

func (*MockUsersRepository) FindByEmail

func (r *MockUsersRepository) FindByEmail(email string) (di.User, error)

Jump to

Keyboard shortcuts

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