def test_double_parse(self): tracer = VizTracer() tracer.start() fib(10) tracer.stop() tracer.parse() result1 = tracer.generate_report() tracer.parse() result2 = tracer.generate_report() self.assertEqual(result1, result2)
def test_c_run_after_clear(self): tracer = VizTracer() tracer.start() fib(5) tracer.stop() entries1 = tracer.parse() report1 = tracer.generate_report() tracer.start() fib(5) tracer.stop() entries2 = tracer.parse() report2 = tracer.generate_report() self.assertEqual(entries1, entries2) self.assertNotEqual(report1, report2)