MCPcopy Create free account
hub / github.com/qilingframework/qiling / populate_tests

Function populate_tests

tests/test_perf.py:18–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def populate_tests():
19 global test_mapping
20
21 unit_tests = [ELFTest(), MACHOTest(), TestShellcode()]
22
23 for ut in unit_tests:
24 ut_functions = inspect.getmembers(ut, predicate=inspect.ismethod)
25
26 for test_name, test_fn in ut_functions:
27 if not test_name.startswith("test_"):
28 continue
29
30 outfile = perf_res_dir + test_name + ".perf"
31 test_mapping.append((test_fn, outfile))
32
33
34def ql_profile(run_fn, outfile):

Callers 1

profile_all_functionsFunction · 0.85

Calls 4

TestShellcodeClass · 0.85
ELFTestClass · 0.70
MACHOTestClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected