diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-10-07 05:31:03 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-10-07 05:31:03 -0400 |
commit | a7072c02bd2f9f4f5de97be0e85db32265756109 (patch) | |
tree | 1229b0de791af41013f66babd0b8ec42d2c463fe /coverage/tracer.c | |
parent | a3f706683ec93cb8082f4495c6cdaae207950799 (diff) | |
download | python-coveragepy-git-a7072c02bd2f9f4f5de97be0e85db32265756109.tar.gz |
Basic plumbing for a --branch option.
Diffstat (limited to 'coverage/tracer.c')
-rw-r--r-- | coverage/tracer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/tracer.c b/coverage/tracer.c index b2389228..c318e9ed 100644 --- a/coverage/tracer.c +++ b/coverage/tracer.c @@ -41,6 +41,7 @@ typedef struct { PyObject * should_trace;
PyObject * data;
PyObject * should_trace_cache;
+ PyObject * branch;
int started;
/* The index of the last-used entry in tracenames. */
int depth;
@@ -301,6 +302,9 @@ Tracer_members[] = { { "should_trace_cache", T_OBJECT, offsetof(Tracer, should_trace_cache), 0,
PyDoc_STR("Dictionary caching should_trace results.") },
+ { "branch", T_OBJECT, offsetof(Tracer, branch), 0,
+ PyDoc_STR("Should we trace branches?") },
+
{ NULL }
};
|