MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / test

Function test

libCacheSim-node/test.js:36–46  ·  view source on GitHub ↗
(description, testFn)

Source from the content-addressed store, hash-verified

34 let total = 0;
35
36 function test(description, testFn) {
37 total++;
38 log('blue', `\nTest: ${description}`);
39 try {
40 if (testFn()) {
41 passed++;
42 }
43 } catch (error) {
44 log('red', `✗ ${description} - Error: ${error.message}`);
45 }
46 }
47
48 log('yellow', '=== libCacheSim Node.js Bindings Test Suite ===\n');
49

Callers 1

runTestsFunction · 0.85

Calls 1

logFunction · 0.85

Tested by

no test coverage detected