MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / log

Function log

tests/schema-validation.test.cjs:42–50  ·  view source on GitHub ↗
(message, type = 'info')

Source from the content-addressed store, hash-verified

40let failedTests = 0;
41
42function log(message, type = 'info') {
43 const colors = {
44 info: '\x1b[0m',
45 success: '\x1b[32m',
46 error: '\x1b[31m',
47 warning: '\x1b[33m'
48 };
49 console.log(`${colors[type]}${message}\x1b[0m`);
50}
51
52async function test(description, testFn) {
53 totalTests++;

Callers 3

testFunction · 0.70
runTestsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected