MCPcopy Index your code
hub / github.com/RustPython/RustPython / display_summary

Method display_summary

Lib/test/libregrtest/main.py:477–494  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

475 self.results.write_junit(self.junit_filename)
476
477 def display_summary(self) -> None:
478 if self.first_runtests is None:
479 raise ValueError(
480 "Should never call `display_summary()` before calling `_run_test()`"
481 )
482
483 duration = time.perf_counter() - self.logger.start_time
484 filtered = bool(self.match_tests)
485
486 # Total duration
487 print()
488 print("Total duration: %s" % format_duration(duration))
489
490 self.results.display_summary(self.first_runtests, filtered)
491
492 # Result
493 state = self.get_state()
494 print(f"Result: {state}")
495
496 def create_run_tests(self, tests: TestTuple) -> RunTests:
497 return RunTests(

Callers 1

_run_testsMethod · 0.95

Calls 3

get_stateMethod · 0.95
format_durationFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected