mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
50efa18c6c
Formerly, branch coverage measurement counters are generated for each compilation traverse of the AST. However, ensure clause node is traversed twice; one is for normal-exit case (the resulted bytecode is embedded in its outer scope), and the other is for exceptional case (the resulted bytecode is used in catch table). Two branch coverage counters are generated for the two cases, but it is not desired. This changeset revamps the internal representation of branch coverage measurement. Branch coverage counters are generated only at the first visit of a branch node. Visiting the same node reuses the already-generated counter, so double counting is avoided. |
||
---|---|---|
.. | ||
lib | ||
coverage.c | ||
depend | ||
extconf.rb |