MCPcopy Create free account
hub / github.com/1jehuang/jcode / log

Function log

scripts/test_memory.py:33–37  ·  view source on GitHub ↗
(msg, color=None)

Source from the content-addressed store, hash-verified

31RESET = '\033[0m'
32
33def log(msg, color=None):
34 if color:
35 print(f"{color}{msg}{RESET}")
36 else:
37 print(msg)
38
39def log_pass(msg): log(f" ✓ {msg}", GREEN)
40def log_fail(msg): log(f" ✗ {msg}", RED)

Callers 5

log_passFunction · 0.85
log_failFunction · 0.85
log_sectionFunction · 0.85
run_testsFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected