In a method for testing computer code, each branch that occurs within the
machine-readable code is located. A first tracepoint is placed
immediately after the beginning of the branch and a second tracepoint at
the target address of each branch, each tracepoint generating an
indicator. When the machine-readable code with the tracepoints is
executed on the target computer, the method identifies those indicators
that have been generated by their corresponding tracepoints, thereby
permitting determination of those branches that the program control flow
has not passed through. The test cases are modified to exercise the
previously omitted branches, and the converted code is re-executed, until
all branches have been properly exercised. The tracepoints are
automatically eliminated after they have performed their intended
function.