Sha256: 8645db5e3553ecbf7ee1883b5b502419fefce7d8026c219fde1e879a98739d33

Contents?: true

Size: 627 Bytes

Versions: 44

Compression:

Stored size: 627 Bytes

Contents

module Recog
class Verifier
  attr_reader :fingerprints, :reporter

  def initialize(fingerprints, reporter)
    @fingerprints = fingerprints
    @reporter = reporter
  end

  def verify_tests
    reporter.report(fingerprints.count) do
      fingerprints.each do |fp|
        reporter.print_name fp

        fp.verify_tests do |status, message|
          case status
          when :warn
            reporter.warning "WARN: #{message}"
          when :fail
            reporter.failure "FAIL: #{message}"
          when :success
            reporter.success(message)
          end

        end

      end
    end
  end
end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
recog-1.0.23 lib/recog/verifier.rb
recog-1.0.22 lib/recog/verifier.rb
recog-1.0.21 lib/recog/verifier.rb
recog-1.0.20 lib/recog/verifier.rb
recog-1.0.19 lib/recog/verifier.rb
recog-1.0.18 lib/recog/verifier.rb
recog-1.0.17 lib/recog/verifier.rb
recog-1.0.16 lib/recog/verifier.rb
recog-1.0.15 lib/recog/verifier.rb
recog-1.0.14 lib/recog/verifier.rb
recog-1.0.13 lib/recog/verifier.rb
recog-1.0.12 lib/recog/verifier.rb
recog-1.0.11 lib/recog/verifier.rb
recog-1.0.10 lib/recog/verifier.rb
recog-1.0.9 lib/recog/verifier.rb
recog-1.0.8 lib/recog/verifier.rb
recog-1.0.7 lib/recog/verifier.rb
recog-1.0.6 lib/recog/verifier.rb
recog-1.0.5 lib/recog/verifier.rb
recog-1.0.4 lib/recog/verifier.rb