MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / replace

Method replace

lib/sqlalchemy/testing/profiling.py:166–177  ·  view source on GitHub ↗
(self, callcount)

Source from the content-addressed store, hash-verified

164 per_platform["counts"][:] = []
165
166 def replace(self, callcount):
167 test_key = _current_test
168 per_fn = self.data[test_key]
169 per_platform = per_fn[self.platform_key]
170 counts = per_platform["counts"]
171 current_count = per_platform["current_count"]
172 if current_count < len(counts):
173 counts[current_count - 1] = callcount
174 else:
175 counts[-1] = callcount
176 if self.write:
177 self._write()
178
179 def _header(self):
180 return (

Callers 11

count_functionsFunction · 0.45
_failure_messageMethod · 0.45
_failure_messageMethod · 0.45
_failure_messageMethod · 0.45
__eq__Method · 0.45
_exclude_tagFunction · 0.45
_include_tagFunction · 0.45
_check_outputMethod · 0.45

Calls 1

_writeMethod · 0.95