MCPcopy
hub / github.com/deepstreamIO/deepstream.io / discarded

Function discarded

test-e2e/framework-v3/record.ts:28–37  ·  view source on GitHub ↗
(clientExpression: string, recordName: string, called: boolean)

Source from the content-addressed store, hash-verified

26 },
27
28 discarded (clientExpression: string, recordName: string, called: boolean) {
29 getRecordData(clientExpression, recordName).forEach((recordData) => {
30 if (called) {
31 sinon.assert.calledOnce(recordData.discardCallback)
32 recordData.discardCallback.resetHistory()
33 } else {
34 sinon.assert.notCalled(recordData.discardCallback)
35 }
36 })
37 },
38
39 receivedUpdate (clientExpression: string, recordName: string, data: string) {
40 data = utils.parseData(data)

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.80
getRecordDataFunction · 0.70

Tested by

no test coverage detected