MCPcopy Create free account
hub / github.com/microsoft/AI-Engineering-Coach / assert

Function assert

scripts/test-catalog-fetch.mjs:63–71  ·  view source on GitHub ↗
(condition, label, detail)

Source from the content-addressed store, hash-verified

61let passes = 0;
62
63function assert(condition, label, detail) {
64 if (condition) {
65 passes++;
66 console.log(` PASS ${label}`);
67 } else {
68 failures++;
69 console.error(` FAIL ${label}${detail ? ' — ' + detail : ''}`);
70 }
71}
72
73function section(name) {
74 console.log(`\n=== ${name} ===`);

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected