MCPcopy Create free account
hub / github.com/ElementsProject/elements / write_testcode

Function write_testcode

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

Source from the content-addressed store, hash-verified

14from utils import determine_wellknown_cmd
15
16def write_testcode(filename):
17 with open(filename, 'w', encoding="utf8") as f:
18 f.write('''
19 #include <stdio.h>
20 int main()
21 {
22 printf("the quick brown fox jumps over the lazy god\\n");
23 return 0;
24 }
25 ''&#x27;)
26
27def clean_files(source, executable):
28 os.remove(source)

Callers 3

test_ELFMethod · 0.85
test_PEMethod · 0.85
test_MACHOMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected