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

Function test_log

test/cli/clang-import_test.py:118–128  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

116 __check_ast(tmpdir, 'struct S { int x; }; S* foo() { return new S(); }')
117
118def test_log(tmpdir):
119 test_file = os.path.join(tmpdir, 'test.cpp')
120 with open(test_file, 'wt'):
121 pass
122
123 args = ['--clang', test_file]
124 out_lines = [
125 'Checking {} ...'.format(test_file).replace('\\', '/'),
126 ]
127
128 assert_cppcheck(args, ec_exp=0, err_exp=[], out_exp=out_lines)
129
130
131def test_warning(tmpdir): # #12424

Callers

nothing calls this directly

Calls 4

assert_cppcheckFunction · 0.90
formatMethod · 0.80
joinMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected