Class: ActiveMutator::Mutation
- Inherits:
-
Data
- Object
- Data
- ActiveMutator::Mutation
- Defined in:
- lib/active_mutator/mutation.rb
Overview
One concrete mutant. line is the 1-based line of the edit in the
ORIGINAL file (used for coverage lookup and reporting).
Instance Attribute Summary collapse
-
#edit ⇒ Object
readonly
Returns the value of attribute edit.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#mutated_def_line ⇒ Object
readonly
Returns the value of attribute mutated_def_line.
-
#mutated_def_source ⇒ Object
readonly
Returns the value of attribute mutated_def_source.
-
#mutated_file_source ⇒ Object
readonly
Returns the value of attribute mutated_file_source.
-
#original_snippet ⇒ Object
readonly
Returns the value of attribute original_snippet.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
- #description ⇒ Object
-
#lines ⇒ Object
Original-file lines the edit touches (edit may span lines).
Instance Attribute Details
#edit ⇒ Object (readonly)
Returns the value of attribute edit
4 5 6 |
# File 'lib/active_mutator/mutation.rb', line 4 def edit @edit end |
#line ⇒ Object (readonly)
Returns the value of attribute line
4 5 6 |
# File 'lib/active_mutator/mutation.rb', line 4 def line @line end |
#mutated_def_line ⇒ Object (readonly)
Returns the value of attribute mutated_def_line
4 5 6 |
# File 'lib/active_mutator/mutation.rb', line 4 def mutated_def_line @mutated_def_line end |
#mutated_def_source ⇒ Object (readonly)
Returns the value of attribute mutated_def_source
4 5 6 |
# File 'lib/active_mutator/mutation.rb', line 4 def mutated_def_source @mutated_def_source end |
#mutated_file_source ⇒ Object (readonly)
Returns the value of attribute mutated_file_source
4 5 6 |
# File 'lib/active_mutator/mutation.rb', line 4 def mutated_file_source @mutated_file_source end |
#original_snippet ⇒ Object (readonly)
Returns the value of attribute original_snippet
4 5 6 |
# File 'lib/active_mutator/mutation.rb', line 4 def original_snippet @original_snippet end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject
4 5 6 |
# File 'lib/active_mutator/mutation.rb', line 4 def subject @subject end |
Instance Method Details
#description ⇒ Object
6 |
# File 'lib/active_mutator/mutation.rb', line 6 def description = edit.description |
#lines ⇒ Object
Original-file lines the edit touches (edit may span lines).
9 |
# File 'lib/active_mutator/mutation.rb', line 9 def lines = line..(line + original_snippet.count("\n")) |