Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
lib/Context/require_all.rb | 13 | 10 | 100.00%
|
100.00%
|
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 Kernel |
2 |
3 # Requires all the files that match the glob in the |
4 # current load-path |
5 def require_all(glob) |
6 $:.each do |path| |
7 Dir.glob(path + "/" + glob) do |file| |
8 name = file.to_s.sub(path + "/", "") |
9 require name |
10 end |
11 end |
12 end |
13 end |
Generated on Mon May 23 16:17:45 +0900 2011 with rcov 0.9.8