Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
rcov/ruby/1.8/gems/rspec-core-2.5.1/lib/rspec/core/drb_command_line.rb | 29 | 27 | 27.59%
|
22.22%
|
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 DRbCommandLine |
4 def initialize(options) |
5 @options = options |
6 end |
7 |
8 def drb_port |
9 @options.options[:drb_port] || ENV['RSPEC_DRB'] || 8989 |
10 end |
11 |
12 def run(err, out) |
13 begin |
14 begin |
15 DRb.start_service("druby://localhost:0") |
16 rescue SocketError, Errno::EADDRNOTAVAIL |
17 DRb.start_service("druby://:0") |
18 end |
19 spec_server = DRbObject.new_with_uri("druby://127.0.0.1:#{drb_port}") |
20 spec_server.run(@options.drb_argv, err, out) |
21 true |
22 rescue DRb::DRbConnError |
23 err.puts "No DRb server is running. Running in local process instead ..." |
24 false |
25 end |
26 end |
27 end |
28 end |
29 end |
Generated on Fri Apr 22 17:22:41 -0700 2011 with rcov 0.9.8