Sha256: 595372d457c46c27b0d214506df13f5e093eb4698e7709b52bcfccd1d9d11863

Contents?: true

Size: 886 Bytes

Versions: 2

Compression:

Stored size: 886 Bytes

Contents

# =========================================================================
#   Ceedling - Test-Centered Build System for C
#   ThrowTheSwitch.org
#   Copyright (c) 2010-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
#   SPDX-License-Identifier: MIT
# =========================================================================

require 'ceedling/constants'


class ReportinatorHelper

  def initialize(system_objects)
    # Convenience alias
    @loginator = system_objects[:loginator]
  end

  # Output the shell result to the console.
  def print_shell_result(shell_result)
    if !(shell_result.nil?)
      msg = "Done in %.3f seconds." % shell_result[:time]
      @loginator.log(msg, Verbosity::NORMAL)

      if !(shell_result[:output].nil?) && (shell_result[:output].length > 0)
        @loginator.log(shell_result[:output], Verbosity::OBNOXIOUS)
      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ceedling-1.0.1 plugins/gcov/lib/reportinator_helper.rb
ceedling-1.0.0 plugins/gcov/lib/reportinator_helper.rb