1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/coverage
Yusuke Endoh 50efa18c6c compile.c: Improve branch coverage instrumentation [Bug #16967]
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.
2020-06-20 09:28:03 +09:00
..
lib ext/coverage/lib/coverage.rb (Coverage.line_stub): use only line events 2018-12-20 10:17:37 +00:00
coverage.c compile.c: Improve branch coverage instrumentation [Bug #16967] 2020-06-20 09:28:03 +09:00
depend sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
extconf.rb