Class: Mutant::Meta::Example::Verification

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat
Defined in:
lib/mutant/meta/example.rb

Overview

Example verification

Instance Method Summary collapse

Instance Method Details

#error_reportString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return error report

Returns:

  • (String)


60
61
62
63
64
65
# File 'lib/mutant/meta/example.rb', line 60

def error_report
  unless unparser.success?
    return unparser.report
  end
  mutation_report
end

#success?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Test if mutation was verified successfully

Returns:

  • (Boolean)


50
51
52
# File 'lib/mutant/meta/example.rb', line 50

def success?
  unparser.success? && missing.empty? && unexpected.empty? && no_diffs.empty?
end