Lines Matching refs:tracer
123 self.tracer = Trace(count=1, trace=0, countfuncs=0, countcallers=0)
127 result = self.tracer.runfunc(traced_func_linear, 2, 5)
136 self.assertEqual(self.tracer.results().counts, expected)
139 self.tracer.runfunc(traced_func_loop, 2, 3)
148 self.assertEqual(self.tracer.results().counts, expected)
151 self.tracer.runfunc(traced_func_importing, 2, 5)
160 self.assertEqual(self.tracer.results().counts, expected)
163 self.tracer.runfunc(traced_func_calling_generator)
175 self.assertEqual(self.tracer.results().counts, expected)
178 self.tracer.runfunc(traced_caller_list_comprehension)
190 self.assertEqual(self.tracer.results().counts, expected)
193 self.tracer.runfunc(traced_decorated_function)
209 self.assertEqual(self.tracer.results().counts, expected)
216 tracer = Trace(count=1, trace=0, countfuncs=0, countcallers=0)
219 tracer.runfunc(method, 20)
225 self.assertEqual(tracer.results().counts, expected)
235 self.tracer = Trace(count=1, trace=0, countfuncs=0, countcallers=0)
238 self.tracer.runctx(code, globals(), vars())
253 self.assertEqual(self.tracer.results().counts[k], expected[k])
260 self.tracer = Trace(count=0, trace=0, countfuncs=1)
269 self.tracer.runfunc(traced_func_simple_caller, 1)
275 self.assertEqual(self.tracer.results().calledfuncs, expected)
278 res = self.tracer.runfunc(traced_capturer, 1, 2, self=3, func=4)
281 self.tracer.runfunc(func=traced_capturer, arg=1)
283 self.tracer.runfunc()
286 self.tracer.runfunc(traced_func_importing_caller, 1)
295 self.assertEqual(self.tracer.results().calledfuncs, expected)
301 self.tracer.runfunc(obj.inst_method_calling, 1)
308 self.assertEqual(self.tracer.results().calledfuncs, expected)
311 self.tracer.runfunc(traced_decorated_function)
320 self.assertEqual(self.tracer.results().calledfuncs, expected)
327 self.tracer = Trace(count=0, trace=0, countcallers=1)
333 self.tracer.runfunc(traced_func_importing_caller, 1)
347 self.assertEqual(self.tracer.results().callers, expected)
359 def _coverage(self, tracer, argument
362 tracer.run(cmd)
363 r = tracer.results()
367 tracer = trace.Trace(trace=0, count=1)
369 self._coverage(tracer)
381 tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,
384 self._coverage(tracer)
390 tracer = trace.Trace(trace=0, count=1)
398 self._coverage(tracer, cmd)