Class: SimpleCov::Formatter::Terminal
- Inherits:
-
Object
- Object
- SimpleCov::Formatter::Terminal
- Extended by:
- Forwardable, MemoWise
- Includes:
- MemoWise
- Defined in:
- lib/simple_cov/formatter/terminal/version.rb,
lib/simple_cov/formatter/terminal.rb,
lib/simple_cov/formatter/terminal.rb
Overview
rubocop:disable Lint/EmptyClass
Defined Under Namespace
Modules: BranchCoverage, ColorPrinting, RSpecIntegration, RailsAwareness, SpecToAppMapping Classes: Config, FileDeterminer, LinePrinter, ResultPrinter
Constant Summary collapse
- VERSION =
'1.9.0'
Instance Method Summary collapse
Instance Method Details
#format(result) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/simple_cov/formatter/terminal.rb', line 48 def format(result) unless ENV.key?('DISABLE_SIMPLECOV_TERMINAL') if executed_spec_files.nil? print_info_for_no_executed_specs elsif unmappable_spec_file? && targeted_application_file.nil? print_info_for_undeterminable_application_target elsif targeted_application_file.nil? print_info_for_undetermined_application_target elsif File.exist?(targeted_application_file) print_coverage_info(result) else print_info_for_nonexistent_application_target end end end |