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

Function TestLiveRecordingScrap

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

Source from the content-addressed store, hash-verified

149}
150
151func TestLiveRecordingScrap(t *testing.T, s Server) {
152 key := ari.NewKey(ari.LiveRecordingKey, "lr1")
153
154 runTest("ok", t, s, func(t *testing.T, m *mock, cl ari.Client) {
155 testLiveRecordingCommand(t, m, "Scrap", key, nil, cl.LiveRecording().Scrap)
156 })
157 runTest("err", t, s, func(t *testing.T, m *mock, cl ari.Client) {
158 testLiveRecordingCommand(t, m, "Scrap", key, errors.New("err"), cl.LiveRecording().Scrap)
159 })
160}

Callers 2

TestLiveRecordingScrapFunction · 0.92
TestLiveRecordingScrapFunction · 0.92

Calls 4

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

Tested by

no test coverage detected