ruby-changes:47832
From: yui-knk <ko1@a...>
Date: Mon, 18 Sep 2017 14:17:24 +0900 (JST)
Subject: [ruby-changes:47832] yui-knk:r59952 (trunk): thread.c: Clear an array for method coverage
yui-knk 2017-09-18 14:17:21 +0900 (Mon, 18 Sep 2017) New Revision: 59952 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59952 Log: thread.c: Clear an array for method coverage * thread.c (reset_coverage_i): Clear an array for method coverage just like line coverage and branch coverage. Modified files: trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 59951) +++ thread.c (revision 59952) @@ -5060,8 +5060,10 @@ reset_coverage_i(st_data_t key, st_data_ https://github.com/ruby/ruby/blob/trunk/thread.c#L5060 VALUE coverage = (VALUE)val; VALUE lines = RARRAY_AREF(coverage, COVERAGE_INDEX_LINES); VALUE branches = RARRAY_AREF(coverage, COVERAGE_INDEX_BRANCHES); + VALUE methods = RARRAY_AREF(coverage, COVERAGE_INDEX_METHODS); if (lines) rb_ary_clear(lines); if (branches) rb_ary_clear(branches); + if (methods) rb_ary_clear(methods); return ST_CONTINUE; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/