MCPcopy
hub / github.com/julianshapiro/velocity / done

Function done

test/qunit-2.5.0.js:1191–1217  ·  view source on GitHub ↗

* This function is called when the ProcessingQueue is done processing all * items. It handles emitting the final run events.

()

Source from the content-addressed store, hash-verified

1189 * items. It handles emitting the final run events.
1190 */
1191 function done() {
1192 var storage = config.storage;
1193
1194 ProcessingQueue.finished = true;
1195
1196 var runtime = now() - config.started;
1197 var passed = config.stats.all - config.stats.bad;
1198
1199 emit("runEnd", globalSuite.end(true));
1200 runLoggingCallbacks("done", {
1201 passed: passed,
1202 failed: config.stats.bad,
1203 total: config.stats.all,
1204 runtime: runtime
1205 });
1206
1207 // Clear own storage items if all tests passed
1208 if (storage && config.stats.bad === 0) {
1209 for (var i = storage.length - 1; i >= 0; i--) {
1210 var key = storage.key(i);
1211
1212 if (key.indexOf("qunit-test-") === 0) {
1213 storage.removeItem(key);
1214 }
1215 }
1216 }
1217 }
1218
1219 var ProcessingQueue = {
1220 finished: false,

Callers 15

test.jsFile · 0.85
advanceFunction · 0.85
qunit-2.5.0.jsFile · 0.85
completeFunction · 0.85
Command Stop.tsFile · 0.85
Command Finish.tsFile · 0.85
beginFunction · 0.85
completeFunction · 0.85
beginFunction · 0.85
completeFunction · 0.85
UI Pack In+Out.tsFile · 0.85

Calls 2

emitFunction · 0.85
runLoggingCallbacksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…