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

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

Overview

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

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.

Error report

Returns:

  • (String)


45
46
47
48
49
50
# File 'lib/mutant/meta/example.rb', line 45

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)


38
39
40
# File 'lib/mutant/meta/example.rb', line 38

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