mqttfakes

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	AddRouteStub func(string, mqtt.MessageHandler)

	ConnectStub func() mqtt.Token

	DisconnectStub func(uint)

	IsConnectedStub func() bool

	IsConnectionOpenStub func() bool

	OptionsReaderStub func() mqtt.ClientOptionsReader

	PublishStub func(string, byte, bool, interface{}) mqtt.Token

	SubscribeStub func(string, byte, mqtt.MessageHandler) mqtt.Token

	SubscribeMultipleStub func(map[string]byte, mqtt.MessageHandler) mqtt.Token

	UnsubscribeStub func(...string) mqtt.Token
	// contains filtered or unexported fields
}

func (*FakeClient) AddRoute

func (fake *FakeClient) AddRoute(arg1 string, arg2 mqtt.MessageHandler)

func (*FakeClient) AddRouteArgsForCall

func (fake *FakeClient) AddRouteArgsForCall(i int) (string, mqtt.MessageHandler)

func (*FakeClient) AddRouteCallCount

func (fake *FakeClient) AddRouteCallCount() int

func (*FakeClient) AddRouteCalls

func (fake *FakeClient) AddRouteCalls(stub func(string, mqtt.MessageHandler))

func (*FakeClient) Connect

func (fake *FakeClient) Connect() mqtt.Token

func (*FakeClient) ConnectCallCount

func (fake *FakeClient) ConnectCallCount() int

func (*FakeClient) ConnectCalls

func (fake *FakeClient) ConnectCalls(stub func() mqtt.Token)

func (*FakeClient) ConnectReturns

func (fake *FakeClient) ConnectReturns(result1 mqtt.Token)

func (*FakeClient) ConnectReturnsOnCall

func (fake *FakeClient) ConnectReturnsOnCall(i int, result1 mqtt.Token)

func (*FakeClient) Disconnect

func (fake *FakeClient) Disconnect(arg1 uint)

func (*FakeClient) DisconnectArgsForCall

func (fake *FakeClient) DisconnectArgsForCall(i int) uint

func (*FakeClient) DisconnectCallCount

func (fake *FakeClient) DisconnectCallCount() int

func (*FakeClient) DisconnectCalls

func (fake *FakeClient) DisconnectCalls(stub func(uint))

func (*FakeClient) Invocations

func (fake *FakeClient) Invocations() map[string][][]interface{}

func (*FakeClient) IsConnected

func (fake *FakeClient) IsConnected() bool

func (*FakeClient) IsConnectedCallCount

func (fake *FakeClient) IsConnectedCallCount() int

func (*FakeClient) IsConnectedCalls

func (fake *FakeClient) IsConnectedCalls(stub func() bool)

func (*FakeClient) IsConnectedReturns

func (fake *FakeClient) IsConnectedReturns(result1 bool)

func (*FakeClient) IsConnectedReturnsOnCall

func (fake *FakeClient) IsConnectedReturnsOnCall(i int, result1 bool)

func (*FakeClient) IsConnectionOpen

func (fake *FakeClient) IsConnectionOpen() bool

func (*FakeClient) IsConnectionOpenCallCount

func (fake *FakeClient) IsConnectionOpenCallCount() int

func (*FakeClient) IsConnectionOpenCalls

func (fake *FakeClient) IsConnectionOpenCalls(stub func() bool)

func (*FakeClient) IsConnectionOpenReturns

func (fake *FakeClient) IsConnectionOpenReturns(result1 bool)

func (*FakeClient) IsConnectionOpenReturnsOnCall

func (fake *FakeClient) IsConnectionOpenReturnsOnCall(i int, result1 bool)

func (*FakeClient) OptionsReader

func (fake *FakeClient) OptionsReader() mqtt.ClientOptionsReader

func (*FakeClient) OptionsReaderCallCount

func (fake *FakeClient) OptionsReaderCallCount() int

func (*FakeClient) OptionsReaderCalls

func (fake *FakeClient) OptionsReaderCalls(stub func() mqtt.ClientOptionsReader)

func (*FakeClient) OptionsReaderReturns

func (fake *FakeClient) OptionsReaderReturns(result1 mqtt.ClientOptionsReader)

func (*FakeClient) OptionsReaderReturnsOnCall

func (fake *FakeClient) OptionsReaderReturnsOnCall(i int, result1 mqtt.ClientOptionsReader)

func (*FakeClient) Publish

func (fake *FakeClient) Publish(arg1 string, arg2 byte, arg3 bool, arg4 interface{}) mqtt.Token

func (*FakeClient) PublishArgsForCall

func (fake *FakeClient) PublishArgsForCall(i int) (string, byte, bool, interface{})

func (*FakeClient) PublishCallCount

func (fake *FakeClient) PublishCallCount() int

func (*FakeClient) PublishCalls

func (fake *FakeClient) PublishCalls(stub func(string, byte, bool, interface{}) mqtt.Token)

func (*FakeClient) PublishReturns

func (fake *FakeClient) PublishReturns(result1 mqtt.Token)

func (*FakeClient) PublishReturnsOnCall

func (fake *FakeClient) PublishReturnsOnCall(i int, result1 mqtt.Token)

func (*FakeClient) Subscribe

func (fake *FakeClient) Subscribe(arg1 string, arg2 byte, arg3 mqtt.MessageHandler) mqtt.Token

func (*FakeClient) SubscribeArgsForCall

func (fake *FakeClient) SubscribeArgsForCall(i int) (string, byte, mqtt.MessageHandler)

func (*FakeClient) SubscribeCallCount

func (fake *FakeClient) SubscribeCallCount() int

func (*FakeClient) SubscribeCalls

func (fake *FakeClient) SubscribeCalls(stub func(string, byte, mqtt.MessageHandler) mqtt.Token)

func (*FakeClient) SubscribeMultiple

func (fake *FakeClient) SubscribeMultiple(arg1 map[string]byte, arg2 mqtt.MessageHandler) mqtt.Token

func (*FakeClient) SubscribeMultipleArgsForCall

func (fake *FakeClient) SubscribeMultipleArgsForCall(i int) (map[string]byte, mqtt.MessageHandler)

func (*FakeClient) SubscribeMultipleCallCount

func (fake *FakeClient) SubscribeMultipleCallCount() int

func (*FakeClient) SubscribeMultipleCalls

func (fake *FakeClient) SubscribeMultipleCalls(stub func(map[string]byte, mqtt.MessageHandler) mqtt.Token)

func (*FakeClient) SubscribeMultipleReturns

func (fake *FakeClient) SubscribeMultipleReturns(result1 mqtt.Token)

func (*FakeClient) SubscribeMultipleReturnsOnCall

func (fake *FakeClient) SubscribeMultipleReturnsOnCall(i int, result1 mqtt.Token)

func (*FakeClient) SubscribeReturns

func (fake *FakeClient) SubscribeReturns(result1 mqtt.Token)

func (*FakeClient) SubscribeReturnsOnCall

func (fake *FakeClient) SubscribeReturnsOnCall(i int, result1 mqtt.Token)

func (*FakeClient) Unsubscribe

func (fake *FakeClient) Unsubscribe(arg1 ...string) mqtt.Token

func (*FakeClient) UnsubscribeArgsForCall

func (fake *FakeClient) UnsubscribeArgsForCall(i int) []string

func (*FakeClient) UnsubscribeCallCount

func (fake *FakeClient) UnsubscribeCallCount() int

func (*FakeClient) UnsubscribeCalls

func (fake *FakeClient) UnsubscribeCalls(stub func(...string) mqtt.Token)

func (*FakeClient) UnsubscribeReturns

func (fake *FakeClient) UnsubscribeReturns(result1 mqtt.Token)

func (*FakeClient) UnsubscribeReturnsOnCall

func (fake *FakeClient) UnsubscribeReturnsOnCall(i int, result1 mqtt.Token)

type FakeMessage

type FakeMessage struct {
	AckStub func()

	DuplicateStub func() bool

	MessageIDStub func() uint16

	PayloadStub func() []byte

	QosStub func() byte

	RetainedStub func() bool

	TopicStub func() string
	// contains filtered or unexported fields
}

func (*FakeMessage) Ack

func (fake *FakeMessage) Ack()

func (*FakeMessage) AckCallCount

func (fake *FakeMessage) AckCallCount() int

func (*FakeMessage) AckCalls

func (fake *FakeMessage) AckCalls(stub func())

func (*FakeMessage) Duplicate

func (fake *FakeMessage) Duplicate() bool

func (*FakeMessage) DuplicateCallCount

func (fake *FakeMessage) DuplicateCallCount() int

func (*FakeMessage) DuplicateCalls

func (fake *FakeMessage) DuplicateCalls(stub func() bool)

func (*FakeMessage) DuplicateReturns

func (fake *FakeMessage) DuplicateReturns(result1 bool)

func (*FakeMessage) DuplicateReturnsOnCall

func (fake *FakeMessage) DuplicateReturnsOnCall(i int, result1 bool)

func (*FakeMessage) Invocations

func (fake *FakeMessage) Invocations() map[string][][]interface{}

func (*FakeMessage) MessageID

func (fake *FakeMessage) MessageID() uint16

func (*FakeMessage) MessageIDCallCount

func (fake *FakeMessage) MessageIDCallCount() int

func (*FakeMessage) MessageIDCalls

func (fake *FakeMessage) MessageIDCalls(stub func() uint16)

func (*FakeMessage) MessageIDReturns

func (fake *FakeMessage) MessageIDReturns(result1 uint16)

func (*FakeMessage) MessageIDReturnsOnCall

func (fake *FakeMessage) MessageIDReturnsOnCall(i int, result1 uint16)

func (*FakeMessage) Payload

func (fake *FakeMessage) Payload() []byte

func (*FakeMessage) PayloadCallCount

func (fake *FakeMessage) PayloadCallCount() int

func (*FakeMessage) PayloadCalls

func (fake *FakeMessage) PayloadCalls(stub func() []byte)

func (*FakeMessage) PayloadReturns

func (fake *FakeMessage) PayloadReturns(result1 []byte)

func (*FakeMessage) PayloadReturnsOnCall

func (fake *FakeMessage) PayloadReturnsOnCall(i int, result1 []byte)

func (*FakeMessage) Qos

func (fake *FakeMessage) Qos() byte

func (*FakeMessage) QosCallCount

func (fake *FakeMessage) QosCallCount() int

func (*FakeMessage) QosCalls

func (fake *FakeMessage) QosCalls(stub func() byte)

func (*FakeMessage) QosReturns

func (fake *FakeMessage) QosReturns(result1 byte)

func (*FakeMessage) QosReturnsOnCall

func (fake *FakeMessage) QosReturnsOnCall(i int, result1 byte)

func (*FakeMessage) Retained

func (fake *FakeMessage) Retained() bool

func (*FakeMessage) RetainedCallCount

func (fake *FakeMessage) RetainedCallCount() int

func (*FakeMessage) RetainedCalls

func (fake *FakeMessage) RetainedCalls(stub func() bool)

func (*FakeMessage) RetainedReturns

func (fake *FakeMessage) RetainedReturns(result1 bool)

func (*FakeMessage) RetainedReturnsOnCall

func (fake *FakeMessage) RetainedReturnsOnCall(i int, result1 bool)

func (*FakeMessage) Topic

func (fake *FakeMessage) Topic() string

func (*FakeMessage) TopicCallCount

func (fake *FakeMessage) TopicCallCount() int

func (*FakeMessage) TopicCalls

func (fake *FakeMessage) TopicCalls(stub func() string)

func (*FakeMessage) TopicReturns

func (fake *FakeMessage) TopicReturns(result1 string)

func (*FakeMessage) TopicReturnsOnCall

func (fake *FakeMessage) TopicReturnsOnCall(i int, result1 string)

type FakeToken

type FakeToken struct {
	ErrorStub func() error

	WaitStub func() bool

	WaitTimeoutStub func(time.Duration) bool
	// contains filtered or unexported fields
}

func (*FakeToken) Error

func (fake *FakeToken) Error() error

func (*FakeToken) ErrorCallCount

func (fake *FakeToken) ErrorCallCount() int

func (*FakeToken) ErrorCalls

func (fake *FakeToken) ErrorCalls(stub func() error)

func (*FakeToken) ErrorReturns

func (fake *FakeToken) ErrorReturns(result1 error)

func (*FakeToken) ErrorReturnsOnCall

func (fake *FakeToken) ErrorReturnsOnCall(i int, result1 error)

func (*FakeToken) Invocations

func (fake *FakeToken) Invocations() map[string][][]interface{}

func (*FakeToken) Wait

func (fake *FakeToken) Wait() bool

func (*FakeToken) WaitCallCount

func (fake *FakeToken) WaitCallCount() int

func (*FakeToken) WaitCalls

func (fake *FakeToken) WaitCalls(stub func() bool)

func (*FakeToken) WaitReturns

func (fake *FakeToken) WaitReturns(result1 bool)

func (*FakeToken) WaitReturnsOnCall

func (fake *FakeToken) WaitReturnsOnCall(i int, result1 bool)

func (*FakeToken) WaitTimeout

func (fake *FakeToken) WaitTimeout(arg1 time.Duration) bool

func (*FakeToken) WaitTimeoutArgsForCall

func (fake *FakeToken) WaitTimeoutArgsForCall(i int) time.Duration

func (*FakeToken) WaitTimeoutCallCount

func (fake *FakeToken) WaitTimeoutCallCount() int

func (*FakeToken) WaitTimeoutCalls

func (fake *FakeToken) WaitTimeoutCalls(stub func(time.Duration) bool)

func (*FakeToken) WaitTimeoutReturns

func (fake *FakeToken) WaitTimeoutReturns(result1 bool)

func (*FakeToken) WaitTimeoutReturnsOnCall

func (fake *FakeToken) WaitTimeoutReturnsOnCall(i int, result1 bool)

Jump to

Keyboard shortcuts

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