[ruby-cvs:73569] mame:r66468 (trunk): ext/coverage/lib/coverage.rb (Coverage.line_stub): use only line events

mame at ruby-lang.org mame at ruby-lang.org
Thu Dec 20 19:17:37 JST 2018


mame	2018-12-20 19:17:37 +0900 (Thu, 20 Dec 2018)

  New Revision: 66468

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66468

  Log:
    ext/coverage/lib/coverage.rb (Coverage.line_stub): use only line events
    
    It wrongly used all linenos of ISeq#trace_points which includes not only
    line events but also call, return, and other events.  So, the result
    included some linenos that can not be covered at all by line coverage.

  Modified files:
    trunk/ext/coverage/lib/coverage.rb
    trunk/test/coverage/test_coverage.rb


More information about the ruby-cvs mailing list