Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/runner/drb_command_line.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/runner/drb_command_line.rb 32 25
37.50%
24.00%

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 require "drb/drb"
2 
3 module Spec
4   module Runner
5     # Facade to run specs by connecting to a DRB server
6     class DrbCommandLine
7 
8       def self.port(options)
9         (options.drb_port || ENV["RSPEC_DRB"] || 8989).to_i
10       end
11 
12       # Runs specs on a DRB server. Note that this API is similar to that of
13       # CommandLine - making it possible for clients to use both interchangeably.
14       def self.run(options)
15         begin
16           begin; \
17             DRb.start_service("druby://localhost:0"); \
18           rescue SocketError, Errno::EADDRNOTAVAIL; \
19             DRb.start_service("druby://:0"); \
20           end
21           spec_server = DRbObject.new_with_uri("druby://127.0.0.1:#{port(options)}")
22           spec_server.run(options.argv, options.error_stream, options.output_stream)
23           true
24         rescue DRb::DRbConnError
25           options.error_stream.puts "No server is running"
26           false
27         end
28       end
29 
30     end
31   end
32 end

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