[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:25002

From: mame ruby-lang.org
Date: Wed, 2 Jul 2008 01:55:32 +0900 (JST)
Subject: [ruby-cvs:25002] Ruby:r17781 (trunk): * Add coverage measurement constant COVERAGE__. This constant is not

mame	2008-07-02 01:55:30 +0900 (Wed, 02 Jul 2008)

  New Revision: 17781

  Added files:
    trunk/lib/coverage.rb
  Modified files:
    trunk/ChangeLog
    trunk/compile.h
    trunk/error.c
    trunk/insns.def
    trunk/iseq.c
    trunk/load.c
    trunk/parse.y
    trunk/thread.c
    trunk/vm_core.h
    trunk/vm_eval.c

  Log:
    * Add coverage measurement constant COVERAGE__.  This constant is not
      for casual use.  Usage: (1) assign {} to COVERAGE__, (2) require or
      load Ruby source file, and (3) COVERAGE__["sourcefilepath"] will
      return an array whose elements represent number of executions per
      line of source code.
    
    * vm_core.h: add field of coverage array to iseq.
    
    * iseq.c (prepare_iseq_build): ditto.
    
    * insns.def (trace): update coverage array.
    
    * parse.y (coverage): create and initialize coverage array.
    
    * compile.h (ADD_TRACE): add trace instruction to update covearge
      array.
    
    * thread.c (clear_coverage): delete coverage array when forking.
      Otherwise, double count of coverage may occur.
    
    * lib/coverage.rb: sample coverage measurement tool.
    
    * error.c: distinguish explicitly between parse_in_eval and
      mild_compile_error.
    
    * load.c: ditto.
    
    * vm_eval.c: ditto.



  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17781

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/load.c?r1=17781&r2=17780&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=17781&r2=17780&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17781&r2=17780&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread.c?r1=17781&r2=17780&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm_core.h?r1=17781&r2=17780&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/coverage.rb?revision=17781&view=markup
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/coverage.rb?r1=17781&r2=17780&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/iseq.c?r1=17781&r2=17780&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/error.c?r1=17781&r2=17780&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/compile.h?r1=17781&r2=17780&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm_eval.c?r1=17781&r2=17780&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/insns.def?r1=17781&r2=17780&diff_format=u


[前][次][番号順一覧][スレッド一覧][生データ]