mock

package
v0.0.0-...-8b0b209 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTokenRepository

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

MockTokenRepository is a mock of TokenRepository interface

func NewMockTokenRepository

func NewMockTokenRepository(ctrl *gomock.Controller) *MockTokenRepository

NewMockTokenRepository creates a new mock instance

func (*MockTokenRepository) EXPECT

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

func (*MockTokenRepository) Generate

func (m *MockTokenRepository) Generate(arg0 *entity.User) (string, error)

Generate mocks base method

func (*MockTokenRepository) Validate

func (m *MockTokenRepository) Validate(arg0 string) (bool, error)

Validate mocks base method

type MockTokenRepositoryMockRecorder

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

MockTokenRepositoryMockRecorder is the mock recorder for MockTokenRepository

func (*MockTokenRepositoryMockRecorder) Generate

func (mr *MockTokenRepositoryMockRecorder) Generate(arg0 interface{}) *gomock.Call

Generate indicates an expected call of Generate

func (*MockTokenRepositoryMockRecorder) Validate

func (mr *MockTokenRepositoryMockRecorder) Validate(arg0 interface{}) *gomock.Call

Validate indicates an expected call of Validate

type MockUserRepository

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

MockUserRepository is a mock of UserRepository interface

func NewMockUserRepository

func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository

NewMockUserRepository creates a new mock instance

func (*MockUserRepository) EXPECT

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

func (*MockUserRepository) GetByEmail

func (m *MockUserRepository) GetByEmail(arg0 context.Context, arg1 string) (*entity.User, error)

GetByEmail mocks base method

type MockUserRepositoryMockRecorder

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

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository

func (*MockUserRepositoryMockRecorder) GetByEmail

func (mr *MockUserRepositoryMockRecorder) GetByEmail(arg0, arg1 interface{}) *gomock.Call

GetByEmail indicates an expected call of GetByEmail

Jump to

Keyboard shortcuts

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