diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-18 05:17:21 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-18 05:17:21 +0000 |
commit | 581cd895ee3ca838670e9b8c5e2f56f9f21fe836 (patch) | |
tree | f3258df0ce7adf2717dc749c94c4d610d131ab4a | |
parent | bf4a28729c5c66ea5a33630ae32face661e9c0ba (diff) | |
download | ruby-581cd895ee3ca838670e9b8c5e2f56f9f21fe836.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5060,8 +5060,10 @@ reset_coverage_i(st_data_t key, st_data_t val, st_data_t dummy) 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; } |