MCPcopy Create free account
hub / github.com/pytorch/pytorch / report_coverage

Function report_coverage

tools/code_coverage/oss_coverage.py:11–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def report_coverage() -> None:
12 start_time = time.time()
13 (options, test_list, interested_folders) = initialization()
14 # run cpp tests
15 get_json_report(test_list, options)
16 # collect coverage data from json profiles
17 if options.need_summary:
18 summarize_jsons(test_list, interested_folders, [""], TestPlatform.OSS)
19 # print program running time
20 print_time("Program Total Time: ", start_time)
21
22
23if __name__ == "__main__":

Callers 1

oss_coverage.pyFile · 0.85

Calls 4

initializationFunction · 0.90
get_json_reportFunction · 0.90
summarize_jsonsFunction · 0.90
print_timeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…