MCPcopy Index your code
hub / github.com/dobin/SuperMega / main

Function main

tester.py:14–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def main():
15 print("Super Mega Tester: " + os.path.dirname(VerifyFilename))
16
17 #setup_logging(level=logging.INFO)
18 setup_logging(level=logging.WARNING)
19
20 config.load()
21 check_deps()
22
23 if not os.path.exists(os.path.dirname(VerifyFilename)):
24 print("{} directory does not exist".format(os.path.dirname(VerifyFilename)))
25 return
26
27 if len(sys.argv) < 2:
28 print("Usage: python tester.py <test>")
29 print("Available tests: all, common, dll_loader, exe_code, exe_data, dll_code, dll_data")
30 return
31
32 match sys.argv[1]:
33 case "all":
34 test_common()
35
36 test_exe_data()
37 test_exe_code()
38
39 test_dll_code()
40 test_dll_data()
41
42 test_dll_loader()
43
44 case "common":
45 test_common()
46 case "dll_loader":
47 test_dll_loader()
48 case "exe_code":
49 test_exe_code()
50 case "exe_data":
51 test_exe_data()
52 case "dll_code":
53 test_dll_code()
54 case "dll_data":
55 test_dll_data()
56 case _:
57 print("Unknown test: {}".format(sys.argv[1]))
58 print("Available tests: all, common, dll_loader, exe_code, exe_data, dll_code, dll_data")
59 return
60
61
62def test_common():

Callers 1

tester.pyFile · 0.70

Calls 10

setup_loggingFunction · 0.90
check_depsFunction · 0.90
test_commonFunction · 0.85
test_exe_dataFunction · 0.85
test_exe_codeFunction · 0.85
test_dll_codeFunction · 0.85
test_dll_dataFunction · 0.85
test_dll_loaderFunction · 0.85
loadMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected