Geminstaller C0 Coverage Information - RCov

lib/geminstaller/registry.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/geminstaller/registry.rb 131 109
93.13%
91.74%

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 module GemInstaller
2   class Registry
3     attr_accessor :file_reader, :yaml_loader, :output_proxy, :config_builder, :gem_source_index, :gem_runner_proxy
4     attr_accessor :gem_runner, :gem_command_manager, :gem_list_checker, :app, :arg_parser, :options
5     attr_accessor :install_processor, :missing_dependency_finder, :valid_platform_selector
6     attr_accessor :output_listener, :outs_output_observer, :errs_output_observer, :output_filter, :autogem, :rogue_gem_finder
7     attr_accessor :gem_spec_manager, :source_index_search_adapter, :bundler_exporter
8     
9     if GemInstaller::RubyGemsVersionChecker.matches?('<=0.9.4')
10       attr_accessor :gem_interaction_handler, :noninteractive_chooser
11     end
12 
13     def initialize
14       @options = {}
15       @arg_parser = GemInstaller::ArgParser.new
16       @arg_parser.options = @options
17       
18       @file_reader = GemInstaller::FileReader.new
19       @yaml_loader = GemInstaller::YamlLoader.new
20       @gem_arg_processor = GemInstaller::GemArgProcessor.new
21       @version_specifier = GemInstaller::VersionSpecifier.new
22       @output_proxy = GemInstaller::OutputProxy.new
23       @output_proxy.options = @options
24       @output_filter = GemInstaller::OutputFilter.new
25       @output_filter.options = @options
26       @output_filter.output_proxy = @output_proxy
27       
28 
29       @output_listener = GemInstaller::OutputListener.new
30       @output_listener.output_filter = @output_filter
31 
32       @valid_platform_selector = GemInstaller::ValidPlatformSelector.new
33       @valid_platform_selector.output_filter = @output_filter
34       @valid_platform_selector.options = @options
35 
36       @config_builder = GemInstaller::ConfigBuilder.new
37       @config_builder.file_reader = @file_reader
38       @config_builder.yaml_loader = @yaml_loader
39       @config_builder.output_filter = @output_filter
40       
41       @bundler_exporter = GemInstaller::BundlerExporter.new
42       @bundler_exporter.output_proxy = @output_proxy
43 
44       @gem_source_index = Gem::SourceIndex.from_installed_gems
45       @gem_source_index_proxy = GemInstaller::GemSourceIndexProxy.new
46       @gem_source_index_proxy.gem_source_index = @gem_source_index
47 
48       @source_index_search_adapter = GemInstaller::SourceIndexSearchAdapter.new
49       @source_index_search_adapter.gem_source_index_proxy = @gem_source_index_proxy
50 
51       @outs_output_observer = GemInstaller::OutputObserver.new
52       @outs_output_observer.stream = :stdout
53       @outs_output_observer.register(@output_listener)
54       @errs_output_observer = GemInstaller::OutputObserver.new
55       @errs_output_observer.stream = :stderr
56       @errs_output_observer.register(@output_listener)
57       
58       @enhanced_stream_ui = GemInstaller::EnhancedStreamUI.new
59       @enhanced_stream_ui.outs = @outs_output_observer
60       @enhanced_stream_ui.errs = @errs_output_observer
61 
62       @gem_runner_class = Gem::GemRunner
63       @gem_cmd_manager_class = Gem::CommandManager
64       @exact_match_list_command = GemInstaller::ExactMatchListCommand.new
65       @gem_runner_proxy = GemInstaller::GemRunnerProxy.new
66       @gem_runner_proxy.gem_runner_class = @gem_runner_class
67       @gem_runner_proxy.gem_cmd_manager_class = @gem_cmd_manager_class
68       @gem_runner_proxy.output_listener = @output_listener
69       @gem_runner_proxy.enhanced_stream_ui = @enhanced_stream_ui
70       @gem_runner_proxy.options = @options
71       @gem_runner_proxy.output_filter = @output_filter
72       @gem_runner_proxy.exact_match_list_command = @exact_match_list_command
73   
74       @gem_spec_manager = GemInstaller::GemSpecManager.new
75       @gem_spec_manager.valid_platform_selector = @valid_platform_selector
76       @gem_spec_manager.source_index_search_adapter = @source_index_search_adapter
77       @gem_spec_manager.output_filter = @output_filter
78         
79       @gem_command_manager = GemInstaller::GemCommandManager.new
80       @gem_command_manager.gem_spec_manager = @gem_spec_manager
81       @gem_command_manager.gem_runner_proxy = @gem_runner_proxy
82         
83       @rogue_gem_finder = GemInstaller::RogueGemFinder.new
84       @rogue_gem_finder.gem_command_manager = @gem_command_manager
85       @rogue_gem_finder.gem_spec_manager = @gem_spec_manager
86       @rogue_gem_finder.output_proxy = @output_proxy
87       
88       @autogem = GemInstaller::Autogem.new
89       @autogem.gem_command_manager = @gem_command_manager
90       @autogem.gem_source_index_proxy = @gem_source_index_proxy
91 
92       @gem_list_checker = GemInstaller::GemListChecker.new
93       @gem_list_checker.gem_command_manager = @gem_command_manager
94       @gem_list_checker.gem_arg_processor = @gem_arg_processor
95       @gem_list_checker.version_specifier = @version_specifier
96 
97       @missing_dependency_finder = GemInstaller::MissingDependencyFinder.new
98       @missing_dependency_finder.gem_command_manager = @gem_command_manager
99       @missing_dependency_finder.gem_spec_manager = @gem_spec_manager
100       @missing_dependency_finder.gem_arg_processor = @gem_arg_processor
101       @missing_dependency_finder.output_filter = @output_filter
102 
103       @install_processor = GemInstaller::InstallProcessor.new
104       @install_processor.options = @options
105       @install_processor.gem_list_checker = @gem_list_checker
106       @install_processor.gem_command_manager = @gem_command_manager
107       @install_processor.gem_spec_manager = @gem_spec_manager
108       @install_processor.missing_dependency_finder = @missing_dependency_finder
109       @install_processor.output_filter = @output_filter
110       
111       if GemInstaller::RubyGemsVersionChecker.matches?('<=0.9.4')
112         @gem_interaction_handler = GemInstaller::GemInteractionHandler.new
113         @noninteractive_chooser_class = GemInstaller::NoninteractiveChooser
114         @gem_interaction_handler.noninteractive_chooser_class = @noninteractive_chooser_class
115         @gem_interaction_handler.valid_platform_selector = @valid_platform_selector
116         @gem_command_manager.gem_interaction_handler = @gem_interaction_handler
117         @enhanced_stream_ui.gem_interaction_handler = @gem_interaction_handler
118       end
119 
120       @app = GemInstaller::Application.new
121       @app.autogem = @autogem
122       @app.rogue_gem_finder = @rogue_gem_finder
123       @app.bundler_exporter = @bundler_exporter
124       @app.options = @options
125       @app.arg_parser = @arg_parser
126       @app.config_builder = @config_builder
127       @app.install_processor = @install_processor
128       @app.output_filter = @output_filter
129     end
130   end
131 end

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