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

Function test_ast_calculations

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

Source from the content-addressed store, hash-verified

103 __check_symbol_database(tmpdir, 'struct S {};')
104
105def test_ast_calculations(tmpdir):
106 __check_ast(tmpdir, 'int x = 5; int y = (x + 4) * 2;')
107 __check_ast(tmpdir, 'long long dostuff(int x) { return x ? 3 : 5; }')
108
109def test_ast_control_flow(tmpdir):
110 __check_ast(tmpdir, 'void foo(int x) { if (x > 5){} }')

Callers

nothing calls this directly

Calls 1

__check_astFunction · 0.85

Tested by

no test coverage detected