MCPcopy Create free account
hub / github.com/apache/echarts / findRevertTag

Function findRevertTag

test/ut/spec/data/dataValueHelper.test.ts:334–344  ·  view source on GitHub ↗
(caseTag: CaseTag)

Source from the content-addressed store, hash-verified

332 }
333
334 function findRevertTag(caseTag: CaseTag) {
335 for (let i = 0; i < tagRevertPairs.length; i++) {
336 const item = tagRevertPairs[i];
337 if (item[0] === caseTag) {
338 return item[1];
339 }
340 else if (item[1] === caseTag) {
341 return item[0];
342 }
343 }
344 }
345
346 Object.keys(testerMap).forEach((name: keyof typeof testerMap) => testerMap[name]());
347}

Callers 1

expectDualFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected