mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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 MockDatastore

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

MockDatastore is a mock of Datastore interface

func NewMockDatastore

func NewMockDatastore(ctrl *gomock.Controller) *MockDatastore

NewMockDatastore creates a new mock instance

func (*MockDatastore) CreateBadge

func (m *MockDatastore) CreateBadge(id, badgeType string, enabled bool) error

CreateBadge mocks base method

func (*MockDatastore) DeleteBadge

func (m *MockDatastore) DeleteBadge(id string) error

DeleteBadge mocks base method

func (*MockDatastore) DisableBadge

func (m *MockDatastore) DisableBadge(id string) error

DisableBadge mocks base method

func (*MockDatastore) EXPECT

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

func (*MockDatastore) EnableBadge

func (m *MockDatastore) EnableBadge(id string) error

EnableBadge mocks base method

func (*MockDatastore) GetBadge

func (m *MockDatastore) GetBadge(id string) (*datastore.Badge, error)

GetBadge mocks base method

func (*MockDatastore) HasAccess

func (m *MockDatastore) HasAccess(id string) (bool, error)

HasAccess mocks base method

func (*MockDatastore) ListBadges

func (m *MockDatastore) ListBadges() ([]datastore.Badge, error)

ListBadges mocks base method

type MockDatastoreMockRecorder

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

MockDatastoreMockRecorder is the mock recorder for MockDatastore

func (*MockDatastoreMockRecorder) CreateBadge

func (mr *MockDatastoreMockRecorder) CreateBadge(id, badgeType, enabled interface{}) *gomock.Call

CreateBadge indicates an expected call of CreateBadge

func (*MockDatastoreMockRecorder) DeleteBadge

func (mr *MockDatastoreMockRecorder) DeleteBadge(id interface{}) *gomock.Call

DeleteBadge indicates an expected call of DeleteBadge

func (*MockDatastoreMockRecorder) DisableBadge

func (mr *MockDatastoreMockRecorder) DisableBadge(id interface{}) *gomock.Call

DisableBadge indicates an expected call of DisableBadge

func (*MockDatastoreMockRecorder) EnableBadge

func (mr *MockDatastoreMockRecorder) EnableBadge(id interface{}) *gomock.Call

EnableBadge indicates an expected call of EnableBadge

func (*MockDatastoreMockRecorder) GetBadge

func (mr *MockDatastoreMockRecorder) GetBadge(id interface{}) *gomock.Call

GetBadge indicates an expected call of GetBadge

func (*MockDatastoreMockRecorder) HasAccess

func (mr *MockDatastoreMockRecorder) HasAccess(id interface{}) *gomock.Call

HasAccess indicates an expected call of HasAccess

func (*MockDatastoreMockRecorder) ListBadges

func (mr *MockDatastoreMockRecorder) ListBadges() *gomock.Call

ListBadges indicates an expected call of ListBadges

type MockLibNFCDevice

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

MockLibNFCDevice is a mock of LibNFCDevice interface

func NewMockLibNFCDevice

func NewMockLibNFCDevice(ctrl *gomock.Controller) *MockLibNFCDevice

NewMockLibNFCDevice creates a new mock instance

func (*MockLibNFCDevice) Close

func (m *MockLibNFCDevice) Close() error

Close mocks base method

func (*MockLibNFCDevice) EXPECT

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

func (*MockLibNFCDevice) InitiatorInit

func (m *MockLibNFCDevice) InitiatorInit() error

InitiatorInit mocks base method

func (*MockLibNFCDevice) InitiatorListPassiveTargets

func (m *MockLibNFCDevice) InitiatorListPassiveTargets(mod nfc.Modulation) ([]nfc.Target, error)

InitiatorListPassiveTargets mocks base method

type MockLibNFCDeviceMockRecorder

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

MockLibNFCDeviceMockRecorder is the mock recorder for MockLibNFCDevice

func (*MockLibNFCDeviceMockRecorder) Close

Close indicates an expected call of Close

func (*MockLibNFCDeviceMockRecorder) InitiatorInit

func (mr *MockLibNFCDeviceMockRecorder) InitiatorInit() *gomock.Call

InitiatorInit indicates an expected call of InitiatorInit

func (*MockLibNFCDeviceMockRecorder) InitiatorListPassiveTargets

func (mr *MockLibNFCDeviceMockRecorder) InitiatorListPassiveTargets(mod interface{}) *gomock.Call

InitiatorListPassiveTargets indicates an expected call of InitiatorListPassiveTargets

type MockPinIO

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

MockPinIO is a mock of PinIO interface

func NewMockPinIO

func NewMockPinIO(ctrl *gomock.Controller) *MockPinIO

NewMockPinIO creates a new mock instance

func (*MockPinIO) DefaultPull

func (m *MockPinIO) DefaultPull() gpio.Pull

DefaultPull mocks base method

func (*MockPinIO) EXPECT

func (m *MockPinIO) EXPECT() *MockPinIOMockRecorder

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

func (*MockPinIO) Function

func (m *MockPinIO) Function() string

Function mocks base method

func (*MockPinIO) Halt

func (m *MockPinIO) Halt() error

Halt mocks base method

func (*MockPinIO) In

func (m *MockPinIO) In(pull gpio.Pull, edge gpio.Edge) error

In mocks base method

func (*MockPinIO) Name

func (m *MockPinIO) Name() string

Name mocks base method

func (*MockPinIO) Number

func (m *MockPinIO) Number() int

Number mocks base method

func (*MockPinIO) Out

func (m *MockPinIO) Out(l gpio.Level) error

Out mocks base method

func (*MockPinIO) PWM

func (m *MockPinIO) PWM(duty gpio.Duty, f physic.Frequency) error

PWM mocks base method

func (*MockPinIO) Pull

func (m *MockPinIO) Pull() gpio.Pull

Pull mocks base method

func (*MockPinIO) Read

func (m *MockPinIO) Read() gpio.Level

Read mocks base method

func (*MockPinIO) String

func (m *MockPinIO) String() string

String mocks base method

func (*MockPinIO) WaitForEdge

func (m *MockPinIO) WaitForEdge(timeout time.Duration) bool

WaitForEdge mocks base method

type MockPinIOMockRecorder

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

MockPinIOMockRecorder is the mock recorder for MockPinIO

func (*MockPinIOMockRecorder) DefaultPull

func (mr *MockPinIOMockRecorder) DefaultPull() *gomock.Call

DefaultPull indicates an expected call of DefaultPull

func (*MockPinIOMockRecorder) Function

func (mr *MockPinIOMockRecorder) Function() *gomock.Call

Function indicates an expected call of Function

func (*MockPinIOMockRecorder) Halt

func (mr *MockPinIOMockRecorder) Halt() *gomock.Call

Halt indicates an expected call of Halt

func (*MockPinIOMockRecorder) In

func (mr *MockPinIOMockRecorder) In(pull, edge interface{}) *gomock.Call

In indicates an expected call of In

func (*MockPinIOMockRecorder) Name

func (mr *MockPinIOMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name

func (*MockPinIOMockRecorder) Number

func (mr *MockPinIOMockRecorder) Number() *gomock.Call

Number indicates an expected call of Number

func (*MockPinIOMockRecorder) Out

func (mr *MockPinIOMockRecorder) Out(l interface{}) *gomock.Call

Out indicates an expected call of Out

func (*MockPinIOMockRecorder) PWM

func (mr *MockPinIOMockRecorder) PWM(duty, f interface{}) *gomock.Call

PWM indicates an expected call of PWM

func (*MockPinIOMockRecorder) Pull

func (mr *MockPinIOMockRecorder) Pull() *gomock.Call

Pull indicates an expected call of Pull

func (*MockPinIOMockRecorder) Read

func (mr *MockPinIOMockRecorder) Read() *gomock.Call

Read indicates an expected call of Read

func (*MockPinIOMockRecorder) String

func (mr *MockPinIOMockRecorder) String() *gomock.Call

String indicates an expected call of String

func (*MockPinIOMockRecorder) WaitForEdge

func (mr *MockPinIOMockRecorder) WaitForEdge(timeout interface{}) *gomock.Call

WaitForEdge indicates an expected call of WaitForEdge

type MockPinIn

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

MockPinIn is a mock of PinIn interface

func NewMockPinIn

func NewMockPinIn(ctrl *gomock.Controller) *MockPinIn

NewMockPinIn creates a new mock instance

func (*MockPinIn) DefaultPull

func (m *MockPinIn) DefaultPull() gpio.Pull

DefaultPull mocks base method

func (*MockPinIn) EXPECT

func (m *MockPinIn) EXPECT() *MockPinInMockRecorder

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

func (*MockPinIn) Function

func (m *MockPinIn) Function() string

Function mocks base method

func (*MockPinIn) Halt

func (m *MockPinIn) Halt() error

Halt mocks base method

func (*MockPinIn) In

func (m *MockPinIn) In(pull gpio.Pull, edge gpio.Edge) error

In mocks base method

func (*MockPinIn) Name

func (m *MockPinIn) Name() string

Name mocks base method

func (*MockPinIn) Number

func (m *MockPinIn) Number() int

Number mocks base method

func (*MockPinIn) Pull

func (m *MockPinIn) Pull() gpio.Pull

Pull mocks base method

func (*MockPinIn) Read

func (m *MockPinIn) Read() gpio.Level

Read mocks base method

func (*MockPinIn) String

func (m *MockPinIn) String() string

String mocks base method

func (*MockPinIn) WaitForEdge

func (m *MockPinIn) WaitForEdge(timeout time.Duration) bool

WaitForEdge mocks base method

type MockPinInMockRecorder

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

MockPinInMockRecorder is the mock recorder for MockPinIn

func (*MockPinInMockRecorder) DefaultPull

func (mr *MockPinInMockRecorder) DefaultPull() *gomock.Call

DefaultPull indicates an expected call of DefaultPull

func (*MockPinInMockRecorder) Function

func (mr *MockPinInMockRecorder) Function() *gomock.Call

Function indicates an expected call of Function

func (*MockPinInMockRecorder) Halt

func (mr *MockPinInMockRecorder) Halt() *gomock.Call

Halt indicates an expected call of Halt

func (*MockPinInMockRecorder) In

func (mr *MockPinInMockRecorder) In(pull, edge interface{}) *gomock.Call

In indicates an expected call of In

func (*MockPinInMockRecorder) Name

func (mr *MockPinInMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name

func (*MockPinInMockRecorder) Number

func (mr *MockPinInMockRecorder) Number() *gomock.Call

Number indicates an expected call of Number

func (*MockPinInMockRecorder) Pull

func (mr *MockPinInMockRecorder) Pull() *gomock.Call

Pull indicates an expected call of Pull

func (*MockPinInMockRecorder) Read

func (mr *MockPinInMockRecorder) Read() *gomock.Call

Read indicates an expected call of Read

func (*MockPinInMockRecorder) String

func (mr *MockPinInMockRecorder) String() *gomock.Call

String indicates an expected call of String

func (*MockPinInMockRecorder) WaitForEdge

func (mr *MockPinInMockRecorder) WaitForEdge(timeout interface{}) *gomock.Call

WaitForEdge indicates an expected call of WaitForEdge

type MockPinOut

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

MockPinOut is a mock of PinOut interface

func NewMockPinOut

func NewMockPinOut(ctrl *gomock.Controller) *MockPinOut

NewMockPinOut creates a new mock instance

func (*MockPinOut) EXPECT

func (m *MockPinOut) EXPECT() *MockPinOutMockRecorder

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

func (*MockPinOut) Function

func (m *MockPinOut) Function() string

Function mocks base method

func (*MockPinOut) Halt

func (m *MockPinOut) Halt() error

Halt mocks base method

func (*MockPinOut) Name

func (m *MockPinOut) Name() string

Name mocks base method

func (*MockPinOut) Number

func (m *MockPinOut) Number() int

Number mocks base method

func (*MockPinOut) Out

func (m *MockPinOut) Out(l gpio.Level) error

Out mocks base method

func (*MockPinOut) PWM

func (m *MockPinOut) PWM(duty gpio.Duty, f physic.Frequency) error

PWM mocks base method

func (*MockPinOut) String

func (m *MockPinOut) String() string

String mocks base method

type MockPinOutMockRecorder

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

MockPinOutMockRecorder is the mock recorder for MockPinOut

func (*MockPinOutMockRecorder) Function

func (mr *MockPinOutMockRecorder) Function() *gomock.Call

Function indicates an expected call of Function

func (*MockPinOutMockRecorder) Halt

func (mr *MockPinOutMockRecorder) Halt() *gomock.Call

Halt indicates an expected call of Halt

func (*MockPinOutMockRecorder) Name

func (mr *MockPinOutMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name

func (*MockPinOutMockRecorder) Number

func (mr *MockPinOutMockRecorder) Number() *gomock.Call

Number indicates an expected call of Number

func (*MockPinOutMockRecorder) Out

func (mr *MockPinOutMockRecorder) Out(l interface{}) *gomock.Call

Out indicates an expected call of Out

func (*MockPinOutMockRecorder) PWM

func (mr *MockPinOutMockRecorder) PWM(duty, f interface{}) *gomock.Call

PWM indicates an expected call of PWM

func (*MockPinOutMockRecorder) String

func (mr *MockPinOutMockRecorder) String() *gomock.Call

String indicates an expected call of String

type MockRealPin

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

MockRealPin is a mock of RealPin interface

func NewMockRealPin

func NewMockRealPin(ctrl *gomock.Controller) *MockRealPin

NewMockRealPin creates a new mock instance

func (*MockRealPin) EXPECT

func (m *MockRealPin) EXPECT() *MockRealPinMockRecorder

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

func (*MockRealPin) Real

func (m *MockRealPin) Real() gpio.PinIO

Real mocks base method

type MockRealPinMockRecorder

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

MockRealPinMockRecorder is the mock recorder for MockRealPin

func (*MockRealPinMockRecorder) Real

func (mr *MockRealPinMockRecorder) Real() *gomock.Call

Real indicates an expected call of Real

type MockScanner

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

MockScanner is a mock of Scanner interface

func NewMockScanner

func NewMockScanner(ctrl *gomock.Controller) *MockScanner

NewMockScanner creates a new mock instance

func (*MockScanner) Done

func (m *MockScanner) Done() error

Done mocks base method

func (*MockScanner) EXPECT

func (m *MockScanner) EXPECT() *MockScannerMockRecorder

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

func (*MockScanner) Scan

func (m *MockScanner) Scan()

Scan mocks base method

type MockScannerMockRecorder

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

MockScannerMockRecorder is the mock recorder for MockScanner

func (*MockScannerMockRecorder) Done

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

Done indicates an expected call of Done

func (*MockScannerMockRecorder) Scan

func (mr *MockScannerMockRecorder) Scan() *gomock.Call

Scan indicates an expected call of Scan

Jump to

Keyboard shortcuts

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