Geminstaller C0 Coverage Information - RCov

spec/fixture/rubygems_dist/rubygems-trunk/lib/rubygems/commands/search_command.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
spec/fixture/rubygems_dist/rubygems-trunk/lib/rubygems/commands/search_command.rb 31 22
93.55%
90.91%

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 'rubygems/command'
2 require 'rubygems/commands/query_command'
3 
4 class Gem::Commands::SearchCommand < Gem::Commands::QueryCommand
5 
6   def initialize
7     super 'search', 'Display all gems whose name contains STRING'
8 
9     remove_option '--name-matches'
10   end
11 
12   def arguments # :nodoc:
13     "STRING        fragment of gem name to search for"
14   end
15 
16   def defaults_str # :nodoc:
17     "--local --no-details"
18   end
19 
20   def usage # :nodoc:
21     "#{program_name} [STRING]"
22   end
23 
24   def execute
25     string = get_one_optional_argument
26     options[:name] = /#{string}/i
27     super
28   end
29 
30 end
31 

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