ruby-changes:48769
From: yui-knk <ko1@a...>
Date: Thu, 23 Nov 2017 20:52:42 +0900 (JST)
Subject: [ruby-changes:48769] yui-knk:r60885 (trunk): thread.c: Update documents
yui-knk 2017-11-23 20:52:36 +0900 (Thu, 23 Nov 2017) New Revision: 60885 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60885 Log: thread.c: Update documents * thread.c (rb_default_coverage): Update documents of internal data structures for branch coverage. Modified files: trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 60884) +++ thread.c (revision 60885) @@ -5089,14 +5089,14 @@ rb_default_coverage(int n) https://github.com/ruby/ruby/blob/trunk/thread.c#L5089 branches = rb_ary_tmp_new_fill(2); /* internal data structures for branch coverage: * - * [[base_type, base_lineno, - * target_type_1, target_lineno_1, target_counter_index_1, - * target_type_2, target_lineno_2, target_counter_index_2, ...], + * [[base_type, base_first_lineno, base_first_column, base_last_lineno, base_last_column, + * target_type_1, target_first_lineno_1, target_first_column_1, target_last_lineno_1, target_last_column_1, target_counter_index_1, + * target_type_2, target_first_lineno_2, target_first_column_2, target_last_lineno_2, target_last_column_2, target_counter_index_2, ...], * ...] * - * Example: [[:case, 1, - * :when, 2, 0, - * :when, 3, 1, ...], + * Example: [[:case, 1, 0, 4, 3, + * :when, 2, 8, 2, 9, 0, + * :when, 3, 8, 3, 9, 1, ...], * ...] */ RARRAY_ASET(branches, 0, rb_ary_tmp_new(0)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/