(tmpdir)
| 107 | __check_ast(tmpdir, 'long long dostuff(int x) { return x ? 3 : 5; }') |
| 108 | |
| 109 | def test_ast_control_flow(tmpdir): |
| 110 | __check_ast(tmpdir, 'void foo(int x) { if (x > 5){} }') |
| 111 | __check_ast(tmpdir, 'int dostuff() { for (int x = 0; x < 10; x++); }') |
| 112 | __check_ast(tmpdir, 'void foo(int x) { switch (x) {case 1: break; } }') |
| 113 | __check_ast(tmpdir, 'void foo(int a, int b, int c) { foo(a,b,c); }') |
| 114 | |
| 115 | def test_ast(tmpdir): |
| 116 | __check_ast(tmpdir, 'struct S { int x; }; S* foo() { return new S(); }') |
nothing calls this directly
no test coverage detected