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

Function TestLiveRecordingStop

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

Source from the content-addressed store, hash-verified

116}
117
118func TestLiveRecordingStop(t *testing.T, s Server) {
119 key := ari.NewKey(ari.LiveRecordingKey, "lr1")
120
121 runTest("ok", t, s, func(t *testing.T, m *mock, cl ari.Client) {
122 testLiveRecordingCommand(t, m, "Stop", key, nil, cl.LiveRecording().Stop)
123 })
124 runTest("err", t, s, func(t *testing.T, m *mock, cl ari.Client) {
125 testLiveRecordingCommand(t, m, "Stop", key, errors.New("err"), cl.LiveRecording().Stop)
126 })
127}
128
129func TestLiveRecordingUnmute(t *testing.T, s Server) {
130 key := ari.NewKey(ari.LiveRecordingKey, "lr1")

Callers 2

TestLiveRecordingStopFunction · 0.92
TestLiveRecordingStopFunction · 0.92

Calls 4

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

Tested by

no test coverage detected