mocks

package
v0.0.0-...-9cde9e9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatabase

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

MockDatabase is a mock of Database interface

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance

func (*MockDatabase) CreateUser

func (m *MockDatabase) CreateUser(arg0 context.Context, arg1 string, arg2 []byte) (uint64, error)

CreateUser mocks base method

func (*MockDatabase) EXPECT

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

func (*MockDatabase) User

func (m *MockDatabase) User(arg0 context.Context, arg1 string) (*models.User, error)

User mocks base method

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase

func (*MockDatabaseMockRecorder) CreateUser

func (mr *MockDatabaseMockRecorder) CreateUser(arg0, arg1, arg2 interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser

func (*MockDatabaseMockRecorder) User

func (mr *MockDatabaseMockRecorder) User(arg0, arg1 interface{}) *gomock.Call

User indicates an expected call of User

type MockServer

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

MockServer is a mock of Server interface

func NewMockServer

func NewMockServer(ctrl *gomock.Controller) *MockServer

NewMockServer creates a new mock instance

func (*MockServer) Config

func (m *MockServer) Config() *server.Config

Config mocks base method

func (*MockServer) Database

func (m *MockServer) Database() db.Database

Database mocks base method

func (*MockServer) EXPECT

func (m *MockServer) EXPECT() *MockServerMockRecorder

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

func (*MockServer) ShouldAuthenticatePath

func (m *MockServer) ShouldAuthenticatePath(arg0 string) bool

ShouldAuthenticatePath mocks base method

type MockServerMockRecorder

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

MockServerMockRecorder is the mock recorder for MockServer

func (*MockServerMockRecorder) Config

func (mr *MockServerMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config

func (*MockServerMockRecorder) Database

func (mr *MockServerMockRecorder) Database() *gomock.Call

Database indicates an expected call of Database

func (*MockServerMockRecorder) ShouldAuthenticatePath

func (mr *MockServerMockRecorder) ShouldAuthenticatePath(arg0 interface{}) *gomock.Call

ShouldAuthenticatePath indicates an expected call of ShouldAuthenticatePath

Jump to

Keyboard shortcuts

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