MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / fail

Function fail

example/tests/gm_xhr_test.js:398–405  ·  view source on GitHub ↗
(msg, extra)

Source from the content-addressed store, hash-verified

396 logLine(`✅ ${escapeHtml(msg)}`);
397 }
398 function fail(msg, extra) {
399 state.fail++;
400 setCounts(state.pass, state.fail, state.skip);
401 logLine(
402 `❌ ${escapeHtml(msg)}${extra ? `<pre style="white-space:pre-wrap;color:#bbb;margin:.5em 0 0">${escapeHtml(extra)}</pre>` : ""}`,
403 "fail"
404 );
405 }
406 function skip(msg) {
407 state.skip++;
408 setCounts(state.pass, state.fail, state.skip);

Callers 1

runAllFunction · 0.70

Calls 3

setCountsFunction · 0.70
logLineFunction · 0.70
escapeHtmlFunction · 0.70

Tested by

no test coverage detected