(tmpdir, code)
| 44 | |
| 45 | |
| 46 | def __check_symbol_database(tmpdir, code): |
| 47 | testfile = os.path.join(tmpdir, 'test.cpp') |
| 48 | with open(testfile, 'w+t') as f: |
| 49 | f.write(code) |
| 50 | ret1, stdout1, _ = cppcheck(['-q', '--clang', '--debug-symdb', testfile]) |
| 51 | ret2, stdout2, _ = cppcheck(['-q', '--debug-symdb', testfile]) |
| 52 | assert 0 == ret1, stdout1 |
| 53 | assert 0 == ret2, stdout2 |
| 54 | assert __get_debug_section('### Symbol database', stdout1) == __get_debug_section('### Symbol database', stdout2) |
| 55 | |
| 56 | |
| 57 | def __check_ast(tmpdir, code): |
no test coverage detected