forked from mbj/mutant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
96 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.bundle | ||
/tmp | ||
/.bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# frozen_string_literal: true | ||
|
||
module Mutant | ||
class Mutator | ||
class Node | ||
# Mutator for kwargs node | ||
class Kwargs < self | ||
|
||
handle(:kwargs) | ||
|
||
private | ||
|
||
def dispatch | ||
emit_argument_presence | ||
emit_argument_mutations | ||
end | ||
|
||
def emit_argument_presence | ||
Util::Array::Presence.call(children).each do |children| | ||
emit_type(*children) | ||
end | ||
end | ||
|
||
def emit_argument_mutations | ||
children.each_with_index do |child, index| | ||
Mutator.mutate(child).each do |mutant| | ||
emit_child_update(index, mutant) | ||
end | ||
end | ||
end | ||
end # Kwargs | ||
end # Node | ||
end # Mutator | ||
end # Mutant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
module Mutant | ||
# Current mutant version | ||
VERSION = '0.10.21' | ||
VERSION = '0.10.22' | ||
end # Mutant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#/usr/bin/bash -ex | ||
|
||
bundle exec mutant run \ | ||
--zombie \ | ||
--ignore-subject Mutant::CLI#add_debug_options \ | ||
--ignore-subject Mutant::Isolation::Fork::Parent#call \ | ||
--ignore-subject Mutant::Mutator::Node::Argument#skip? \ | ||
--ignore-subject Mutant::Mutator::Node::ProcargZero#dispatch \ | ||
--ignore-subject Mutant::Mutator::Node::When#mutate_conditions \ | ||
--ignore-subject Mutant::Zombifier#call \ | ||
bundle exec mutant run \ | ||
--zombie \ | ||
--ignore-subject Mutant::CLI#add_debug_options \ | ||
--ignore-subject Mutant::Expression::Namespace::Recursive#initialize \ | ||
--ignore-subject Mutant::Isolation::Fork::Parent#call \ | ||
--ignore-subject Mutant::Mutator::Node::Argument#skip? \ | ||
--ignore-subject Mutant::Mutator::Node::ProcargZero#dispatch \ | ||
--ignore-subject Mutant::Mutator::Node::When#mutate_conditions \ | ||
--ignore-subject Mutant::Zombifier#call \ | ||
$* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters