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

Function assert

libCacheSim-node/test.js:22–30  ·  view source on GitHub ↗
(condition, message)

Source from the content-addressed store, hash-verified

20}
21
22function assert(condition, message) {
23 if (condition) {
24 log('green', `✓ ${message}`);
25 return true;
26 } else {
27 log('red', `✗ ${message}`);
28 return false;
29 }
30}
31
32function runTests() {
33 let passed = 0;

Callers 15

convert_size_strMethod · 0.85
load_configMethod · 0.85
runTestsFunction · 0.85
clone_cacheFunction · 0.85
dump_cached_obj_ageFunction · 0.85
generate_cache_nameFunction · 0.85
move_obj_to_tailFunction · 0.85
prepend_obj_to_headFunction · 0.85
nop_to_evictFunction · 0.85
nop_remove_objFunction · 0.85
S3FIFO_to_evictFunction · 0.85

Calls 1

logFunction · 0.85

Tested by

no test coverage detected