Geminstaller C0 Coverage Information - RCov

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

Name Total Lines Lines of Code Total Coverage Code Coverage
spec/fixture/rubygems_dist/rubygems-trunk/lib/rubygems/commands/list_command.rb 35 22
77.14%
68.18%

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 ##
5 # An alternate to Gem::Commands::QueryCommand that searches for gems starting
6 # with the the supplied argument.
7 
8 class Gem::Commands::ListCommand < Gem::Commands::QueryCommand
9 
10   def initialize
11     super 'list', 'Display gems whose name starts with STRING'
12 
13     remove_option('--name-matches')
14   end
15 
16   def arguments # :nodoc:
17     "STRING        start of gem name to look for"
18   end
19 
20   def defaults_str # :nodoc:
21     "--local --no-details"
22   end
23 
24   def usage # :nodoc:
25     "#{program_name} [STRING]"
26   end
27 
28   def execute
29     string = get_one_optional_argument || ''
30     options[:name] = /^#{string}/i
31     super
32   end
33 
34 end
35 

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