Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
rcov/ruby/1.8/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_close.rb | 17 | 8 | 70.59%
|
37.50%
|
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.
1 module RSpec |
2 module Matchers |
3 # :call-seq: |
4 # should be_close(expected, delta) |
5 # should_not be_close(expected, delta) |
6 # |
7 # Passes if actual == expected +/- delta |
8 # |
9 # == Example |
10 # |
11 # result.should be_close(3.0, 0.5) |
12 def be_close(expected, delta) |
13 RSpec.deprecate("be_close(#{expected}, #{delta})", "be_within(#{delta}).of(#{expected})") |
14 be_within(delta).of(expected) |
15 end |
16 end |
17 end |
Generated on Fri Apr 22 17:22:41 -0700 2011 with rcov 0.9.8