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

Function format_path

test/cli/lookup_test.py:458–459  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

456 exitcode, stdout, stderr, _ = cppcheck_ex(args=['--debug-lookup=platform', '--platform=avr8.xml', test_file], cppcheck_exe=cppcheck, cwd=str(tmpdir), env=env)
457 assert exitcode == 0, stdout if stdout else stderr
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)

Callers 4

try_failFunction · 0.85
try_successFunction · 0.85
test_lookup_pathFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected