MCPcopy
hub / github.com/apache/echarts / shouldShowMarkAsExpected

Function shouldShowMarkAsExpected

test/runTest/genReport.js:56–72  ·  view source on GitHub ↗
(test, expectedSource, expectedVersion)

Source from the content-addressed store, hash-verified

54}
55
56function shouldShowMarkAsExpected(test, expectedSource, expectedVersion) {
57 if (expectedSource === 'release' && (expectedVersion !== test.expectedVersion)
58 || !test.markedAsExpected
59 ) {
60 return false;
61 }
62 if (expectedSource !== 'release' && test.markedAsExpected.length > 0) {
63 return true;
64 }
65
66 for (let i = 0; i < test.markedAsExpected.length; i++) {
67 if (test.markedAsExpected[i].lastVersion === expectedVersion) {
68 return true;
69 }
70 }
71 return false;
72}
73
74function generateMarkDetails(test) {
75 if (!test.markedAsExpected || test.markedAsExpected.length === 0) {

Callers 1

genReport.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…