MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _run_test

Method _run_test

examples/performance/__init__.py:310–321  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

308 self.stats.append(TestResult(self, fn, total_time=total))
309
310 def _run_test(self, fn):
311 if self._setup:
312 self._setup(self.dburl, self.echo, self.num)
313 if self.gc:
314 # gc.set_debug(gc.DEBUG_COLLECTABLE)
315 gc.set_debug(gc.DEBUG_STATS)
316 if self.profile or self.dump:
317 self._run_with_profile(fn, self.sort)
318 else:
319 self._run_with_time(fn)
320 if self.gc:
321 gc.set_debug(0)
322
323 @classmethod
324 def main(cls):

Callers 1

runMethod · 0.95

Calls 3

_run_with_profileMethod · 0.95
_run_with_timeMethod · 0.95
_setupMethod · 0.80

Tested by

no test coverage detected