MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / try_fail

Function try_fail

test/cli/lookup_test.py:460–462  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

458 def format_path(p):
459 return p.replace('\\', '/').replace('"', '\'')
460 def try_fail(f):
461 f = format_path(f)
462 return "try to load platform file '{}' ... Error=XML_ERROR_FILE_NOT_FOUND ErrorID=3 (0x3) Line number=0: filename={}".format(f, f)
463 def try_success(f):
464 f = format_path(f)
465 return "try to load platform file '{}' ... Success".format(f)

Callers 2

test_lookup_pathFunction · 0.85

Calls 2

format_pathFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected