Class: Mutest::Meta::Example::Verification Private
- Inherits:
-
Object
- Object
- Mutest::Meta::Example::Verification
- Includes:
- Adamantium::Flat
- Defined in:
- lib/mutest/meta/example/verification.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
-
#error_report ⇒ String
private
Error report.
-
#success? ⇒ Boolean
private
Test if mutation was verified successfully.
Instance Method Details
#error_report ⇒ String
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
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/mutest/meta/example/verification.rb', line 18 def error_report fail 'no error report on successful validation' if success? YAML.dump( 'file' => example.file, 'original_ast' => example.node.inspect, 'original_source' => example.source, 'missing' => format_mutations(missing), 'unexpected' => format_mutations(unexpected), 'no_diff' => no_diff_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
11 12 13 |
# File 'lib/mutest/meta/example/verification.rb', line 11 def success? missing.empty? && unexpected.empty? && no_diffs.empty? end |