MCPcopy Index your code
hub / github.com/python/cpython / check_lno_name

Method check_lno_name

Lib/test/test_bdb.py:311–319  ·  view source on GitHub ↗

Check the line number and function co_name.

(self)

Source from the content-addressed store, hash-verified

309 (msg, self.expect_set_no, result))
310
311 def check_lno_name(self):
312 """Check the line number and function co_name."""
313 s = len(self.expect)
314 if s > 1:
315 lineno = self.lno_abs2rel()
316 self.check_equal(self.expect[1], lineno, 'Wrong line number')
317 if s > 2:
318 self.check_equal(self.expect[2], self.frame.f_code.co_name,
319 'Wrong function name')
320
321 def check_expect_max_size(self, size):
322 if len(self.expect) > size:

Callers 2

process_eventMethod · 0.95
next_set_methodMethod · 0.95

Calls 2

lno_abs2relMethod · 0.95
check_equalMethod · 0.95

Tested by

no test coverage detected