(filename)
| 9 | import unittest |
| 10 | |
| 11 | def write_testcode(filename): |
| 12 | with open(filename, 'w', encoding="utf8") as f: |
| 13 | f.write(''' |
| 14 | #include <stdio.h> |
| 15 | int main() |
| 16 | { |
| 17 | printf("the quick brown fox jumps over the lazy god\\n"); |
| 18 | return 0; |
| 19 | } |
| 20 | ''') |
| 21 | |
| 22 | def call_security_check(cc, source, executable, options): |
| 23 | subprocess.check_call([cc,source,'-o',executable] + options) |
no test coverage detected