Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

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 MockRepository

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

MockRepository is a mock of Repository interface

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance

func (*MockRepository) CreateIfNotExist

func (m *MockRepository) CreateIfNotExist(user *model.User) error

CreateIfNotExist mocks base method

func (*MockRepository) EXPECT

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

func (*MockRepository) GetByUsername

func (m *MockRepository) GetByUsername(username string) (*model.User, error)

GetByUsername mocks base method

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository

func (*MockRepositoryMockRecorder) CreateIfNotExist

func (mr *MockRepositoryMockRecorder) CreateIfNotExist(user interface{}) *gomock.Call

CreateIfNotExist indicates an expected call of CreateIfNotExist

func (*MockRepositoryMockRecorder) GetByUsername

func (mr *MockRepositoryMockRecorder) GetByUsername(username interface{}) *gomock.Call

GetByUsername indicates an expected call of GetByUsername

Jump to

Keyboard shortcuts

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