MCPcopy Create free account
hub / github.com/data-apis/python-record-api / trace

Method trace

record_api/test.py:19–27  ·  view source on GitHub ↗

use exec so that it is called in child scope. alternatively could use IIFE but this is more verbose in the tests

(self, source: str)

Source from the content-addressed store, hash-verified

17 self.maxDiff = None
18
19 def trace(self, source: str):
20 """
21 use exec so that it is called in child scope.
22
23 alternatively could use IIFE but this is more verbose
24 in the tests
25 """
26 with self.tracer: # type: ignore
27 exec(source)
28
29 def assertCalls(self, *calls):
30 self.assertListEqual(

Callers 15

test_posMethod · 0.45
test_negMethod · 0.45
test_invertMethod · 0.45
test_addMethod · 0.45
test_raddMethod · 0.45
test_iaddMethod · 0.45
test_getitemMethod · 0.45
test_setitemMethod · 0.45
test_setattrMethod · 0.45
test_tuple_unpackMethod · 0.45
test_load_attrMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected