(test, expectedSource, expectedVersion)
| 54 | } |
| 55 | |
| 56 | function 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 | |
| 74 | function generateMarkDetails(test) { |
| 75 | if (!test.markedAsExpected || test.markedAsExpected.length === 0) { |
no outgoing calls
no test coverage detected
searching dependent graphs…