Permalink
Browse files

* ext/coverage/coverage.c (Init_coverage): Change list format and

  describe Coverage.result output.  Patch by Sylvain Daubert.
  [Ruby 1.9 - Bug #5428]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 55b3a88 commit ccec5b49ca8dee413c0e6cd205c21b44eb30c015 @drbrain drbrain committed Oct 10, 2011
Showing with 13 additions and 5 deletions.
  1. +6 −0 ChangeLog
  2. +7 −5 ext/coverage/coverage.c
View
@@ -1,3 +1,9 @@
+Tue Oct 11 06:06:29 2011 Eric Hodel <drbrain@segment7.net>
+
+ * ext/coverage/coverage.c (Init_coverage): Change list format and
+ describe Coverage.result output. Patch by Sylvain Daubert.
+ [Ruby 1.9 - Bug #5428]
+
Tue Oct 11 05:53:23 2011 Eric Hodel <drbrain@segment7.net>
* object.c (Init_Object): Add reference to BasicObject, brief
@@ -71,11 +71,13 @@ rb_coverage_result(VALUE klass)
*
* = Usage
*
- * (1) require "coverage.so"
- * (2) do Coverage.start
- * (3) require or load Ruby source file
- * (4) Coverage.result will return a hash that contains filename as key and
- * coverage array as value.
+ * 1. require "coverage.so"
+ * 2. do Coverage.start
+ * 3. require or load Ruby source file
+ * 4. Coverage.result will return a hash that contains filename as key and
+ * coverage array as value. A coverage array gives, for each line, the
+ * number of line execution by the interpreter. A +nil+ value means
+ * coverage is disabled for this line (lines like +else+ and +end+).
*
* = Example
*

0 comments on commit ccec5b4

Please sign in to comment.