MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / write_testcode

Function write_testcode

contrib/devtools/test-security-check.py:11–20  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

9import unittest
10
11def 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 ''&#x27;)
21
22def call_security_check(cc, source, executable, options):
23 subprocess.check_call([cc,source,'-o',executable] + options)

Callers 3

test_ELFMethod · 0.85
test_32bit_PEMethod · 0.85
test_64bit_PEMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected