Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
rcov/ruby/1.8/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb | 35 | 33 | 91.43%
|
90.91%
|
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 Core |
3 class CommandLine |
4 def initialize(options, configuration=RSpec::configuration, world=RSpec::world) |
5 if Array === options |
6 options = ConfigurationOptions.new(options) |
7 options.parse_options |
8 end |
9 @options = options |
10 @configuration = configuration |
11 @world = world |
12 end |
13 |
14 def run(err, out) |
15 @configuration.error_stream = err |
16 @configuration.output_stream ||= out |
17 @options.configure(@configuration) |
18 @configuration.load_spec_files |
19 @configuration.configure_mock_framework |
20 @configuration.configure_expectation_framework |
21 @world.announce_inclusion_filter |
22 @world.announce_exclusion_filter |
23 |
24 @configuration.reporter.report(@world.example_count) do |reporter| |
25 begin |
26 @configuration.run_hook(:before, :suite) |
27 @world.example_groups.map {|g| g.run(reporter)}.all? |
28 ensure |
29 @configuration.run_hook(:after, :suite) |
30 end |
31 end |
32 end |
33 end |
34 end |
35 end |
Generated on Fri Apr 22 17:22:42 -0700 2011 with rcov 0.9.8