MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_times_summary

Method test_times_summary

tests/utils/test_profiling.py:147–159  ·  view source on GitHub ↗

Test generating the summary report dictionary.

(self)

Source from the content-addressed store, hash-verified

145 self.assertEqual(len(results["range5"]), 5)
146
147 def test_times_summary(self):
148 """Test generating the summary report dictionary."""
149 with WorkflowProfiler() as wp:
150 self.scale(self.test_image)
151
152 tsum = wp.get_times_summary()
153
154 self.assertSequenceEqual(list(tsum), [self.scale_call_name])
155
156 times = tsum[self.scale_call_name]
157
158 self.assertEqual(len(times), 6)
159 self.assertEqual(times[0], 1)
160
161 @SkipIfNoModule("pandas")
162 def test_times_summary_pd(self):

Callers

nothing calls this directly

Calls 2

WorkflowProfilerClass · 0.90
get_times_summaryMethod · 0.80

Tested by

no test coverage detected