mock

package
v2.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 4 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 MockPermissionService

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

MockPermissionService is a mock of PermissionService interface

func NewMockPermissionService

func NewMockPermissionService(ctrl *gomock.Controller) *MockPermissionService

NewMockPermissionService creates a new mock instance

func (*MockPermissionService) EXPECT

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

func (*MockPermissionService) FindPermissionForUser

func (m *MockPermissionService) FindPermissionForUser(ctx context.Context, UserID influxdb.ID) (influxdb.PermissionSet, error)

FindPermissionForUser mocks base method

type MockPermissionServiceMockRecorder

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

MockPermissionServiceMockRecorder is the mock recorder for MockPermissionService

func (*MockPermissionServiceMockRecorder) FindPermissionForUser

func (mr *MockPermissionServiceMockRecorder) FindPermissionForUser(ctx, UserID interface{}) *gomock.Call

FindPermissionForUser indicates an expected call of FindPermissionForUser

type MockPromise

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

MockPromise is a mock of Promise interface

func NewMockPromise

func NewMockPromise(ctrl *gomock.Controller) *MockPromise

NewMockPromise creates a new mock instance

func (*MockPromise) Cancel

func (m *MockPromise) Cancel(ctx context.Context)

Cancel mocks base method

func (*MockPromise) Done

func (m *MockPromise) Done() <-chan struct{}

Done mocks base method

func (*MockPromise) EXPECT

func (m *MockPromise) EXPECT() *MockPromiseMockRecorder

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

func (*MockPromise) Error

func (m *MockPromise) Error() error

Error mocks base method

func (*MockPromise) ID

func (m *MockPromise) ID() influxdb.ID

ID mocks base method

type MockPromiseMockRecorder

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

MockPromiseMockRecorder is the mock recorder for MockPromise

func (*MockPromiseMockRecorder) Cancel

func (mr *MockPromiseMockRecorder) Cancel(ctx interface{}) *gomock.Call

Cancel indicates an expected call of Cancel

func (*MockPromiseMockRecorder) Done

func (mr *MockPromiseMockRecorder) Done() *gomock.Call

Done indicates an expected call of Done

func (*MockPromiseMockRecorder) Error

func (mr *MockPromiseMockRecorder) Error() *gomock.Call

Error indicates an expected call of Error

func (*MockPromiseMockRecorder) ID

ID indicates an expected call of ID

Jump to

Keyboard shortcuts

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