mock

package
v3.0.16+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock is a mock client used for unit testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApplication

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

Mock of Application interface

func NewMockApplication

func NewMockApplication(ctrl *gomock.Controller) *MockApplication

func (*MockApplication) Data

func (_m *MockApplication) Data(_param0 string) (ari.ApplicationData, error)

func (*MockApplication) EXPECT

func (_m *MockApplication) EXPECT() *_MockApplicationRecorder

func (*MockApplication) Get

func (_m *MockApplication) Get(_param0 string) *ari.ApplicationHandle

func (*MockApplication) List

func (_m *MockApplication) List() ([]*ari.ApplicationHandle, error)

func (*MockApplication) Subscribe

func (_m *MockApplication) Subscribe(_param0 string, _param1 string) error

func (*MockApplication) Unsubscribe

func (_m *MockApplication) Unsubscribe(_param0 string, _param1 string) error

type MockAsterisk

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

Mock of Asterisk interface

func NewMockAsterisk

func NewMockAsterisk(ctrl *gomock.Controller) *MockAsterisk

func (*MockAsterisk) Config

func (_m *MockAsterisk) Config() ari.Config

func (*MockAsterisk) EXPECT

func (_m *MockAsterisk) EXPECT() *_MockAsteriskRecorder

func (*MockAsterisk) Info

func (_m *MockAsterisk) Info(_param0 string) (*ari.AsteriskInfo, error)

func (*MockAsterisk) Logging

func (_m *MockAsterisk) Logging() ari.Logging

func (*MockAsterisk) Modules

func (_m *MockAsterisk) Modules() ari.Modules

func (*MockAsterisk) ReloadModule

func (_m *MockAsterisk) ReloadModule(_param0 string) error

func (*MockAsterisk) Variables

func (_m *MockAsterisk) Variables() ari.Variables

type MockBridge

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

Mock of Bridge interface

func NewMockBridge

func NewMockBridge(ctrl *gomock.Controller) *MockBridge

func (*MockBridge) AddChannel

func (_m *MockBridge) AddChannel(_param0 string, _param1 string) error

func (*MockBridge) Create

func (_m *MockBridge) Create(_param0 string, _param1 string, _param2 string) (*ari.BridgeHandle, error)

func (*MockBridge) Data

func (_m *MockBridge) Data(_param0 string) (ari.BridgeData, error)

func (*MockBridge) Delete

func (_m *MockBridge) Delete(_param0 string) error

func (*MockBridge) EXPECT

func (_m *MockBridge) EXPECT() *_MockBridgeRecorder

func (*MockBridge) Get

func (_m *MockBridge) Get(_param0 string) *ari.BridgeHandle

func (*MockBridge) List

func (_m *MockBridge) List() ([]*ari.BridgeHandle, error)

func (*MockBridge) Play

func (_m *MockBridge) Play(_param0 string, _param1 string, _param2 string) (*ari.PlaybackHandle, error)

func (*MockBridge) Record

func (_m *MockBridge) Record(_param0 string, _param1 string, _param2 *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)

func (*MockBridge) RemoveChannel

func (_m *MockBridge) RemoveChannel(_param0 string, _param1 string) error

func (*MockBridge) Subscribe

func (_m *MockBridge) Subscribe(_param0 string, _param1 ...string) ari.Subscription

type MockBus

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

Mock of Bus interface

func NewMockBus

func NewMockBus(ctrl *gomock.Controller) *MockBus

func (*MockBus) Close

func (_m *MockBus) Close()

func (*MockBus) EXPECT

func (_m *MockBus) EXPECT() *_MockBusRecorder

func (*MockBus) Send

func (_m *MockBus) Send(_param0 *ari.Message)

func (*MockBus) Subscribe

func (_m *MockBus) Subscribe(_param0 ...string) ari.Subscription

type MockChannel

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

Mock of Channel interface

func NewMockChannel

func NewMockChannel(ctrl *gomock.Controller) *MockChannel

func (*MockChannel) Answer

func (_m *MockChannel) Answer(_param0 string) error

func (*MockChannel) Busy

func (_m *MockChannel) Busy(_param0 string) error

func (*MockChannel) Congestion

func (_m *MockChannel) Congestion(_param0 string) error

func (*MockChannel) Continue

func (_m *MockChannel) Continue(_param0 string, _param1 string, _param2 string, _param3 int) error

func (*MockChannel) Create

func (_m *MockChannel) Create(_param0 ari.ChannelCreateRequest) (*ari.ChannelHandle, error)

func (*MockChannel) Data

func (_m *MockChannel) Data(_param0 string) (ari.ChannelData, error)

func (*MockChannel) Dial

func (_m *MockChannel) Dial(_param0 string, _param1 string, _param2 time.Duration) error

func (*MockChannel) EXPECT

func (_m *MockChannel) EXPECT() *_MockChannelRecorder

func (*MockChannel) Get

func (_m *MockChannel) Get(_param0 string) *ari.ChannelHandle

func (*MockChannel) Hangup

func (_m *MockChannel) Hangup(_param0 string, _param1 string) error

func (*MockChannel) Hold

func (_m *MockChannel) Hold(_param0 string) error

func (*MockChannel) List

func (_m *MockChannel) List() ([]*ari.ChannelHandle, error)

func (*MockChannel) MOH

func (_m *MockChannel) MOH(_param0 string, _param1 string) error

func (*MockChannel) Mute

func (_m *MockChannel) Mute(_param0 string, _param1 string) error

func (*MockChannel) Originate

func (_m *MockChannel) Originate(_param0 ari.OriginateRequest) (*ari.ChannelHandle, error)

func (*MockChannel) Play

func (_m *MockChannel) Play(_param0 string, _param1 string, _param2 string) (*ari.PlaybackHandle, error)

func (*MockChannel) Record

func (_m *MockChannel) Record(_param0 string, _param1 string, _param2 *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)

func (*MockChannel) Ring

func (_m *MockChannel) Ring(_param0 string) error

func (*MockChannel) SendDTMF

func (_m *MockChannel) SendDTMF(_param0 string, _param1 string, _param2 *ari.DTMFOptions) error

func (*MockChannel) Silence

func (_m *MockChannel) Silence(_param0 string) error

func (*MockChannel) Snoop

func (_m *MockChannel) Snoop(_param0 string, _param1 string, _param2 string, _param3 *ari.SnoopOptions) (*ari.ChannelHandle, error)

func (*MockChannel) StopHold

func (_m *MockChannel) StopHold(_param0 string) error

func (*MockChannel) StopMOH

func (_m *MockChannel) StopMOH(_param0 string) error

func (*MockChannel) StopRing

func (_m *MockChannel) StopRing(_param0 string) error

func (*MockChannel) StopSilence

func (_m *MockChannel) StopSilence(_param0 string) error

func (*MockChannel) Subscribe

func (_m *MockChannel) Subscribe(_param0 string, _param1 ...string) ari.Subscription

func (*MockChannel) Unmute

func (_m *MockChannel) Unmute(_param0 string, _param1 string) error

func (*MockChannel) Variables

func (_m *MockChannel) Variables(_param0 string) ari.Variables

type MockConfig

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

Mock of Config interface

func NewMockConfig

func NewMockConfig(ctrl *gomock.Controller) *MockConfig

func (*MockConfig) Data

func (_m *MockConfig) Data(_param0 string, _param1 string, _param2 string) (ari.ConfigData, error)

func (*MockConfig) Delete

func (_m *MockConfig) Delete(_param0 string, _param1 string, _param2 string) error

func (*MockConfig) EXPECT

func (_m *MockConfig) EXPECT() *_MockConfigRecorder

func (*MockConfig) Get

func (_m *MockConfig) Get(_param0 string, _param1 string, _param2 string) *ari.ConfigHandle

func (*MockConfig) Update

func (_m *MockConfig) Update(_param0 string, _param1 string, _param2 string, _param3 []ari.ConfigTuple) error

type MockDeviceState

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

Mock of DeviceState interface

func NewMockDeviceState

func NewMockDeviceState(ctrl *gomock.Controller) *MockDeviceState

func (*MockDeviceState) Data

func (_m *MockDeviceState) Data(_param0 string) (ari.DeviceStateData, error)

func (*MockDeviceState) Delete

func (_m *MockDeviceState) Delete(_param0 string) error

func (*MockDeviceState) EXPECT

func (_m *MockDeviceState) EXPECT() *_MockDeviceStateRecorder

func (*MockDeviceState) Get

func (_m *MockDeviceState) Get(_param0 string) *ari.DeviceStateHandle

func (*MockDeviceState) List

func (_m *MockDeviceState) List() ([]*ari.DeviceStateHandle, error)

func (*MockDeviceState) Update

func (_m *MockDeviceState) Update(_param0 string, _param1 string) error

type MockLiveRecording

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

Mock of LiveRecording interface

func NewMockLiveRecording

func NewMockLiveRecording(ctrl *gomock.Controller) *MockLiveRecording

func (*MockLiveRecording) Data

func (_m *MockLiveRecording) Data(_param0 string) (ari.LiveRecordingData, error)

func (*MockLiveRecording) Delete

func (_m *MockLiveRecording) Delete(_param0 string) error

func (*MockLiveRecording) EXPECT

func (_m *MockLiveRecording) EXPECT() *_MockLiveRecordingRecorder

func (*MockLiveRecording) Get

func (_m *MockLiveRecording) Get(_param0 string) *ari.LiveRecordingHandle

func (*MockLiveRecording) Mute

func (_m *MockLiveRecording) Mute(_param0 string) error

func (*MockLiveRecording) Pause

func (_m *MockLiveRecording) Pause(_param0 string) error

func (*MockLiveRecording) Resume

func (_m *MockLiveRecording) Resume(_param0 string) error

func (*MockLiveRecording) Scrap

func (_m *MockLiveRecording) Scrap(_param0 string) error

func (*MockLiveRecording) Stop

func (_m *MockLiveRecording) Stop(_param0 string) error

func (*MockLiveRecording) Unmute

func (_m *MockLiveRecording) Unmute(_param0 string) error

type MockLogging

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

Mock of Logging interface

func NewMockLogging

func NewMockLogging(ctrl *gomock.Controller) *MockLogging

func (*MockLogging) Create

func (_m *MockLogging) Create(_param0 string, _param1 string) error

func (*MockLogging) Delete

func (_m *MockLogging) Delete(_param0 string) error

func (*MockLogging) EXPECT

func (_m *MockLogging) EXPECT() *_MockLoggingRecorder

func (*MockLogging) List

func (_m *MockLogging) List() ([]ari.LogData, error)

func (*MockLogging) Rotate

func (_m *MockLogging) Rotate(_param0 string) error

type MockMailbox

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

Mock of Mailbox interface

func NewMockMailbox

func NewMockMailbox(ctrl *gomock.Controller) *MockMailbox

func (*MockMailbox) Data

func (_m *MockMailbox) Data(_param0 string) (ari.MailboxData, error)

func (*MockMailbox) Delete

func (_m *MockMailbox) Delete(_param0 string) error

func (*MockMailbox) EXPECT

func (_m *MockMailbox) EXPECT() *_MockMailboxRecorder

func (*MockMailbox) Get

func (_m *MockMailbox) Get(_param0 string) *ari.MailboxHandle

func (*MockMailbox) List

func (_m *MockMailbox) List() ([]*ari.MailboxHandle, error)

func (*MockMailbox) Update

func (_m *MockMailbox) Update(_param0 string, _param1 int, _param2 int) error

type MockModules

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

Mock of Modules interface

func NewMockModules

func NewMockModules(ctrl *gomock.Controller) *MockModules

func (*MockModules) Data

func (_m *MockModules) Data(_param0 string) (ari.ModuleData, error)

func (*MockModules) EXPECT

func (_m *MockModules) EXPECT() *_MockModulesRecorder

func (*MockModules) Get

func (_m *MockModules) Get(_param0 string) *ari.ModuleHandle

func (*MockModules) List

func (_m *MockModules) List() ([]*ari.ModuleHandle, error)

func (*MockModules) Load

func (_m *MockModules) Load(_param0 string) error

func (*MockModules) Reload

func (_m *MockModules) Reload(_param0 string) error

func (*MockModules) Unload

func (_m *MockModules) Unload(_param0 string) error

type MockPlayback

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

Mock of Playback interface

func NewMockPlayback

func NewMockPlayback(ctrl *gomock.Controller) *MockPlayback

func (*MockPlayback) Control

func (_m *MockPlayback) Control(_param0 string, _param1 string) error

func (*MockPlayback) Data

func (_m *MockPlayback) Data(_param0 string) (ari.PlaybackData, error)

func (*MockPlayback) EXPECT

func (_m *MockPlayback) EXPECT() *_MockPlaybackRecorder

func (*MockPlayback) Get

func (_m *MockPlayback) Get(_param0 string) *ari.PlaybackHandle

func (*MockPlayback) Stop

func (_m *MockPlayback) Stop(_param0 string) error

func (*MockPlayback) Subscribe

func (_m *MockPlayback) Subscribe(_param0 string, _param1 ...string) ari.Subscription

type MockPlayer

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

Mock of Player interface

func NewMockPlayer

func NewMockPlayer(ctrl *gomock.Controller) *MockPlayer

func (*MockPlayer) EXPECT

func (_m *MockPlayer) EXPECT() *_MockPlayerRecorder

func (*MockPlayer) Play

func (_m *MockPlayer) Play(_param0 string, _param1 string) (*ari.PlaybackHandle, error)

func (*MockPlayer) Subscribe

func (_m *MockPlayer) Subscribe(_param0 ...string) ari.Subscription

type MockSound

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

Mock of Sound interface

func NewMockSound

func NewMockSound(ctrl *gomock.Controller) *MockSound

func (*MockSound) Data

func (_m *MockSound) Data(_param0 string) (ari.SoundData, error)

func (*MockSound) EXPECT

func (_m *MockSound) EXPECT() *_MockSoundRecorder

func (*MockSound) Get

func (_m *MockSound) Get(_param0 string) *ari.SoundHandle

func (*MockSound) List

func (_m *MockSound) List(_param0 map[string]string) ([]*ari.SoundHandle, error)

type MockStoredRecording

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

Mock of StoredRecording interface

func NewMockStoredRecording

func NewMockStoredRecording(ctrl *gomock.Controller) *MockStoredRecording

func (*MockStoredRecording) Copy

func (_m *MockStoredRecording) Copy(_param0 string, _param1 string) (*ari.StoredRecordingHandle, error)

func (*MockStoredRecording) Data

func (*MockStoredRecording) Delete

func (_m *MockStoredRecording) Delete(_param0 string) error

func (*MockStoredRecording) EXPECT

func (_m *MockStoredRecording) EXPECT() *_MockStoredRecordingRecorder

func (*MockStoredRecording) Get

func (*MockStoredRecording) List

type MockSubscription

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

Mock of Subscription interface

func NewMockSubscription

func NewMockSubscription(ctrl *gomock.Controller) *MockSubscription

func (*MockSubscription) Cancel

func (_m *MockSubscription) Cancel()

func (*MockSubscription) EXPECT

func (_m *MockSubscription) EXPECT() *_MockSubscriptionRecorder

func (*MockSubscription) Events

func (_m *MockSubscription) Events() chan ari.Event

type MockVariables

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

Mock of Variables interface

func NewMockVariables

func NewMockVariables(ctrl *gomock.Controller) *MockVariables

func (*MockVariables) EXPECT

func (_m *MockVariables) EXPECT() *_MockVariablesRecorder

func (*MockVariables) Get

func (_m *MockVariables) Get(_param0 string) (string, error)

func (*MockVariables) Set

func (_m *MockVariables) Set(_param0 string, _param1 string) error

Jump to

Keyboard shortcuts

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