Merge pull request #242 from tjchambers/typos2
Fix documentation of parameters and correct method naming
This commit is contained in:
commit
d060f462f4
11 changed files with 13 additions and 15 deletions
|
@ -67,7 +67,7 @@ NestedIterators:
|
|||
- Mutant::Mutator::Node::Resbody#mutate_captures
|
||||
- Mutant::Mutator::Node::Arguments#emit_argument_mutations
|
||||
- Mutant::RequireHighjack#infect
|
||||
- Mutant::RequireHighjack#desinfect
|
||||
- Mutant::RequireHighjack#disinfect
|
||||
- Mutant::Subject#tests
|
||||
- Parser::Lexer#self.new
|
||||
max_allowed_nesting: 1
|
||||
|
|
|
@ -24,10 +24,10 @@ module Mutant
|
|||
self
|
||||
end
|
||||
|
||||
# Find last node satisfing predicate (as block)
|
||||
# Find last node satisfying predicate (as block)
|
||||
#
|
||||
# @return [Parser::AST::Node]
|
||||
# if satisfing node is found
|
||||
# if satisfying node is found
|
||||
#
|
||||
# @yield [Parser::AST::Node]
|
||||
#
|
||||
|
|
|
@ -100,7 +100,7 @@ module Mutant
|
|||
|
||||
end # Send
|
||||
|
||||
# Generic node metatada
|
||||
# Generic node metadata
|
||||
class Generic
|
||||
include Adamantium, Concord.new(:node)
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ module Mutant
|
|||
|
||||
private
|
||||
|
||||
# Test scope if name matches expresion
|
||||
# Test scope if name matches expression
|
||||
#
|
||||
# @param [Module, Class] scope
|
||||
#
|
||||
|
|
|
@ -26,7 +26,7 @@ module Mutant
|
|||
|
||||
# Return generated mutations
|
||||
#
|
||||
# @return [Emumerable<Mutant::Mutation>]
|
||||
# @return [Enumerable<Mutant::Mutation>]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
|
|
|
@ -28,5 +28,5 @@ module Mutant
|
|||
end # Boolean
|
||||
end # Literal
|
||||
end # Node
|
||||
end # Mutatork
|
||||
end # Mutator
|
||||
end # Mutant
|
||||
|
|
|
@ -22,7 +22,7 @@ module Mutant
|
|||
yield
|
||||
self
|
||||
ensure
|
||||
desinfect
|
||||
disinfect
|
||||
end
|
||||
|
||||
# Infect kernel with highjack
|
||||
|
@ -43,13 +43,13 @@ module Mutant
|
|||
end
|
||||
end
|
||||
|
||||
# Imperfectly desinfect kernel from highjack
|
||||
# Imperfectly disinfect kernel from highjack
|
||||
#
|
||||
# @return [self]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def desinfect
|
||||
def disinfect
|
||||
original = @original
|
||||
target.module_eval do
|
||||
undef :require
|
||||
|
|
|
@ -106,7 +106,7 @@ module Mutant
|
|||
|
||||
# Handle exit if needed
|
||||
#
|
||||
# @param [Result::Mutation] mutation
|
||||
# @param [Result::Mutation] result
|
||||
#
|
||||
# @return [undefined]
|
||||
#
|
||||
|
|
|
@ -32,8 +32,6 @@ module Mutant
|
|||
#
|
||||
# TODO: This logic is now centralized but still fucked.
|
||||
#
|
||||
# @param [Mutation] mutation
|
||||
#
|
||||
# @return [Array<Test>]
|
||||
#
|
||||
# @api private
|
||||
|
|
|
@ -14,7 +14,7 @@ Mutant::Meta::Example.add do
|
|||
# Deleted else branch
|
||||
mutation 'if condition; true end'
|
||||
|
||||
# Deleted if branch resuting in unless rendering
|
||||
# Deleted if branch resulting in unless rendering
|
||||
mutation 'unless condition; false; end'
|
||||
|
||||
# Deleted if branch with promoting else branch to if branch
|
||||
|
|
|
@ -10,7 +10,7 @@ Mutant::Meta::Example.add do
|
|||
source 'super()'
|
||||
|
||||
singleton_mutations
|
||||
# this is zsuper a totally differend node thant super()
|
||||
# this is zsuper a totally different node than super()
|
||||
mutation 'super'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue