MCPcopy Create free account
hub / github.com/nodejs/node / _assert

Function _assert

deps/v8/tools/testrunner/local/statusfile.py:337–340  ·  view source on GitHub ↗
(check, message)

Source from the content-addressed store, hash-verified

335 basename, DEFAULT_JS_TEST_EXTENSIONS)
336 status = {"success": True}
337 def _assert(check, message): # Like "assert", but doesn't throw.
338 if not check:
339 print("%s: Error: %s" % (path, message))
340 status["success"] = False
341 try:
342 for section in contents:
343 _assert(type(section) == list, "Section must be a list")

Callers 1

PresubmitCheckFunction · 0.85

Calls 1

printFunction · 0.50

Tested by

no test coverage detected