mocks

package
v3.0.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDispatcher

type MockDispatcher struct {
	mock.Mock
}

MockDispatcher is a mock of a dispatcher that can be reused for testing

func (*MockDispatcher) Close

func (m *MockDispatcher) Close(subscriber dispatcher.Subscriber)

Close mocks Close

func (*MockDispatcher) Register

func (m *MockDispatcher) Register(subscriber dispatcher.Subscriber)

Register mocks Register

func (*MockDispatcher) Send

func (m *MockDispatcher) Send(notification ...dispatcher.Notification)

Send mocks Send

func (*MockDispatcher) Start

func (m *MockDispatcher) Start()

Start mocks Start

func (*MockDispatcher) Stop

func (m *MockDispatcher) Stop()

Stop mocks Stop

func (*MockDispatcher) Subscribers

func (m *MockDispatcher) Subscribers() []dispatcher.Subscriber

Subscribers mocks Subscribers

Jump to

Keyboard shortcuts

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