MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / TestLiveRecordingPause

Function TestLiveRecordingPause

internal/integration/liverecording.go:107–116  ·  view source on GitHub ↗
(t *testing.T, s Server)

Source from the content-addressed store, hash-verified

105}
106
107func TestLiveRecordingPause(t *testing.T, s Server) {
108 key := ari.NewKey(ari.LiveRecordingKey, "lr1")
109
110 runTest("ok", t, s, func(t *testing.T, m *mock, cl ari.Client) {
111 testLiveRecordingCommand(t, m, "Pause", key, nil, cl.LiveRecording().Pause)
112 })
113 runTest("err", t, s, func(t *testing.T, m *mock, cl ari.Client) {
114 testLiveRecordingCommand(t, m, "Pause", key, errors.New("err"), cl.LiveRecording().Pause)
115 })
116}
117
118func TestLiveRecordingStop(t *testing.T, s Server) {
119 key := ari.NewKey(ari.LiveRecordingKey, "lr1")

Callers 2

TestLiveRecordingPauseFunction · 0.92
TestLiveRecordingPauseFunction · 0.92

Calls 4

runTestFunction · 0.85
testLiveRecordingCommandFunction · 0.85
LiveRecordingMethod · 0.80
NewMethod · 0.80

Tested by

no test coverage detected