C0 code coverage information

Generated on Sun Oct 26 11:18:12 -0500 2008 with rcov 0.8.1.2


Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
Name Total lines Lines of code Total coverage Code coverage
spec/aquarium/extensions/regex_spec.rb 40 33
100.0% 
100.0% 
 1 require File.dirname(__FILE__) + '/../spec_helper'
 2 require 'aquarium/extensions/regexp'
 3 
 4 describe Regexp, "#empty?" do
 5   
 6   it "should return true for an empty regular expression" do
 7     //.empty?.should be_true
 8     Regexp.new("").empty?.should be_true
 9   end
10   
11   it "should return true for an empty regular expression with whitespace" do
12     /   /.empty?.should be_true
13     Regexp.new("   ").empty?.should be_true
14   end
15   
16   it "should return false for a non-empty regular expression" do
17     /x/.empty?.should be_false
18     Regexp.new("x").empty?.should be_false
19   end
20 end
21 
22 describe Regexp, "#strip" do
23   it "should return equivalent Regexp if there is no leading or trailing whitespace." do
24     re = /^.{3}.*[a-z]$/
25     re.strip.should == re
26   end
27 
28   it "should return new Regexp with removed leading and/or trailing whitespace, when present." do
29     re_string = "^.{3}.*[a-z]$"
30     re = Regexp.new "  #{re_string}  "
31     re.strip.source.should == re_string
32   end
33 end
34 
35 describe Regexp, "#<=>" do
36   it "should sort by the output of #to_s" do
37     ary = [/^x/, /x/, /x$/]
38     ary.sort.should == [/^x/, /x$/, /x/]
39   end
40 end

Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.

Valid XHTML 1.0! Valid CSS!