MCPcopy
hub / github.com/scality/cloudserver / checkNoError

Function checkNoError

tests/functional/aws-node-sdk/test/object/get.js:44–47  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

42const partSize = 1024 * 1024 * 5; // 5MB minumum required part size.
43
44function checkNoError(err) {
45 assert.equal(err, null,
46 `Expected success, got error ${JSON.stringify(err)}`);
47}
48
49function checkError(err, code) {
50 assert.notEqual(err, null, 'Expected failure but got success');

Callers 1

get.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected