MCPcopy Index your code
hub / github.com/scality/cloudserver / _checkError

Function _checkError

tests/unit/api/objectPutTagging.js:39–43  ·  view source on GitHub ↗
(err, code, errorName)

Source from the content-addressed store, hash-verified

37}, postBody);
38
39function _checkError(err, code, errorName) {
40 assert(err, 'Expected error but found none');
41 assert.strictEqual(err.code, code);
42 assert(err.is[errorName]);
43}
44
45function _generateSampleXml(key, value) {
46 const xml = '<Tagging>' +

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected