Class: Mutant::Meta::Example::Verification Private
- Inherits:
-
Object
- Object
- Mutant::Meta::Example::Verification
- Includes:
- Adamantium::Flat
- Defined in:
- lib/mutant/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
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/mutant/meta/example/verification.rb', line 21 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), 'invalid_syntax' => format_mutations(invalid_syntax), '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
13 14 15 |
# File 'lib/mutant/meta/example/verification.rb', line 13 def success? [missing, unexpected, no_diffs, invalid_syntax].all?(&:empty?) end |