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

Function _generateSampleXml

tests/unit/api/objectPutTagging.js:45–56  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

43}
44
45function _generateSampleXml(key, value) {
46 const xml = '<Tagging>' +
47 '<TagSet>' +
48 '<Tag>' +
49 `<Key>${key}</Key>` +
50 `<Value>${value}</Value>` +
51 '</Tag>' +
52 '</TagSet>' +
53 '</Tagging>';
54
55 return xml;
56}
57
58describe('putObjectTagging API', () => {
59 beforeEach(done => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected