Geminstaller C0 Coverage Information - RCov

lib/geminstaller/yaml_loader.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/geminstaller/yaml_loader.rb 22 18
72.73%
83.33%

Key

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.

Coverage Details

1 module GemInstaller
2   class YamlLoader
3     def load(yaml_text)
4       yaml = nil
5       begin
6         yaml = YAML.load(yaml_text)
7       rescue Exception => e
8         message = e.message
9         error = <<-STRING_END
10 Error: Received error while attempting to parse YAML from yaml text:
11   #{message}
12 Please ensure this is valid YAML:
13 
14 #{yaml_text}\n\n"
15 STRING_END
16 
17         raise GemInstaller::GemInstallerError.new(error)
18       end
19       return yaml
20     end
21   end
22 end

Generated on Mon May 10 23:40:28 -0700 2010 with rcov 0.9.8