coveragepy coverage of trace functions

Issue #547 closed
Loic Dachary
created an issue

The code in tracer.c, pytracer.py, or code in control.py called from those does not show as covered when running make metacov. Using mocks would be tedious and error prone.

The code could run with a trace function that captures the sequence of events, and frames. Then replay those against the code. The problem is, you can't just capture the events, you have to actually send them to the real trace function also, and if that function has state, like whether a file has been should_trace'd already or not, then it's hard to replay the events.

Comments (1)

  1. Log in to comment