()
| 115 | var currentTestChunk = 1; |
| 116 | var numberOfChunks = Math.max(Math.floor(totalSize / (chunkSize * 1.0)), 1); |
| 117 | var testChunkExists = function() { |
| 118 | fs.exists(getChunkFilename(currentTestChunk, identifier), function(exists) { |
| 119 | if (exists) { |
| 120 | currentTestChunk++; |
| 121 | if (currentTestChunk > numberOfChunks) { |
| 122 | callback('done', filename, original_filename, identifier); |
| 123 | } else { |
| 124 | // Recursion |
| 125 | testChunkExists(); |
| 126 | } |
| 127 | } else { |
| 128 | callback('partly_done', filename, original_filename, identifier); |
| 129 | } |
| 130 | }); |
| 131 | }; |
| 132 | testChunkExists(); |
| 133 | }); |
| 134 | } else { |
no test coverage detected
searching dependent graphs…