Commit graph

34 commits

Author SHA1 Message Date
mjago
bc4cf44291
Update integrations.yml to reflect rubySpec update
- Adds support for regexp_bol_escape which was
   uncovered by rubyspec changes

 - Updates integrations.yml to expect a new error that
   wasn't encountered before

 - Fixes #687
2016-10-30 15:22:40 -07:00
John Backus
6ca5ac8060
Add mutation from proc { } to lambda { }
Fixes #607
2016-10-15 19:05:33 -07:00
John Backus
d2300f686d
Add regexp support for /\h/ 2016-08-14 13:58:12 -07:00
John Backus
770f34eee5
Reintroduce Regexp mutations
- Reverts commit 8c0c656aec
- Fixes #595
- Adds support for `\h` and `\H`
2016-07-25 12:21:50 -07:00
John Backus
fee9e6fe5e
Fix RuboCop and Reek violations
Introduced by new devtools release
2016-07-24 13:56:28 -07:00
John Backus
d069fc164f
Add missing YARD documentation
These comments were the only missing docs flagged by yardstick
2016-06-18 15:56:22 -07:00
Markus Schirp
8c0c656aec Revert "Mutate regexp body" 2016-05-29 17:07:35 +00:00
John Backus
eaf1abed0e
Add regular expression mutation
- Adds dependency on regexp_parser
- Introduces a bijective mapper from regexp_parser expression to ast
- Extracts generic TypeRegistry
- Refactors Regexp::Transformer to use TypeRegistry
2016-05-22 20:45:14 -07:00
John Backus
20d65ef161 Fix namespace annotations 2016-04-10 14:33:47 -07:00
Markus Schirp
41c41b2a17 Fix coverage of Mutant::Mutator namespace 2016-03-22 01:01:21 +00:00
Markus Schirp
f0ae1d1990 Fix visiblity of NamedChildren methods 2016-03-21 21:44:07 +00:00
Markus Schirp
d04425904e Bump parser version to pull csend fix 2016-01-24 09:15:57 +00:00
Markus Schirp
d997118e34 Add support for parser-2.3
* Bumps unparser dependency to version with fixed emitter, allowing to
  reduce some sexp meta expectations.
2016-01-24 00:16:16 +00:00
Markus Schirp
b7fdf846bc Remove redundant @api private YARD docs 2015-11-15 23:13:43 +00:00
Markus Schirp
66643789c8 Refactor Mutant::Cache into Mutant::Parser 2015-11-13 04:47:47 +00:00
John Backus
7931a01476 Add mutation Date.parse -> other parse methods
- Adds receiver specific selector mutations
- Closes #432
2015-10-09 10:58:31 -07:00
John Backus
1ddcac2504 Add restarg arity mutation
- Mutates `def foo(*args); end` into `def foo(*args); args = []; end`
- Closes #181
2015-09-08 08:03:48 -07:00
John Backus
a8453f01cc Add mutation A.const_get(:B) -> A::B
Closes #422
2015-09-01 15:22:37 +00:00
John Backus
cd46758942 Fix typo for AST::Meta::Resbody 2015-08-20 11:29:09 -07:00
John Backus
15ced2aed0 Move AST::Meta descendants to their own files
The AST::Meta was a class or two away from exceeding the rubocop
ClassLength limit so this seems like a necessary reorganization.
2015-08-19 21:02:18 -04:00
John Backus
b19a97084c Add optarg arity mutation
- Adds mutation from `def foo(a = true); end`
  to `def foo(a = true); a = true; end`
- closes #310
2015-08-19 16:15:52 +00:00
Markus Schirp
8335cccafb Fix YARD summary line
* Reduce redunrant 'Return' prefix on summaries
* Improve summary line to reflect the semantics of operation better
2015-07-03 15:21:39 +00:00
Markus Schirp
4bd15abeb6 Fix positioning of @api YARD tag 2015-07-02 03:35:54 +00:00
Markus Schirp
04a4a44e18 Fix specification holes in Mutant::AST::Meta
* Reduce implementation
* Fix assumption node specific classes under AST::Meta all have
  #assignable? method. They are intentionalyl not LSP compatible and do
  NOT share the class hierarchy for that reason.
* Inline APIs with one call side
2015-06-14 23:56:08 +00:00
Markus Schirp
c6a50e5c28 Fix specification holes in Mutant::AST::NamedChildren 2015-06-14 23:55:53 +00:00
Tim Chambers
e90e9e1ea4 Correct miscellaneous typos
Mostly comments
2014-11-22 11:16:07 -08:00
Markus Schirp
aee85f9273 Handle :rational type nodes via generic mutator 2014-11-03 14:29:48 +00:00
Markus Schirp
1ae2c04193 Add concat-promotion of resbody nodes
Idea related to #245.
2014-08-16 21:14:22 +00:00
Tim Chambers
1fdad80087 Fix typo in comment 2014-08-12 16:27:30 -07:00
Markus Schirp
ea14f772f4 Deduplicate .to_set.freeze chains 2014-07-06 03:09:08 +00:00
Markus Schirp
68e983d357 Remove dead code 2014-07-06 02:37:04 +00:00
Markus Schirp
41d9700473 Refactor runer infrastructure
* Nuke around 800 lock
* Honor LSP with not anymore squeezing something non LSP compatible in
  the same inheritance tree.
* Separate running from result tree.
* Clean up kill logic and early exits on already dead mutations.
* Fix #runnin? smell for reporters.
* Decouple config object from VM state. Makes it serializable to enable
  config loading.
* Fix sequence of global VM events to match PRIOR rspec infects VM with
  gazillions of classes / modules. Thix fixes a startup speed
  degeneration.
* Various fixes to enhance determinism.
* Replace some unneded manual double dispatch with single manual dispatch for
  reporter / runners.
2014-07-05 23:04:38 +00:00
Markus Schirp
4d08889a7c Prefer String#chomp over String#sub 2014-06-29 22:21:47 +00:00
Markus Schirp
13cd04d9be Introduce AST::Meta to externalize semantic analysis
* Add Mutant::AST namespace to hold all AST related data / helpers.
* Mutant::AST will be externalized into an ast-meta gem that can be
  shared with unparser for deduplication.
* Over the time the mutators itself will not need to deal with semantic
  analysis of the AST anymore by themselves.
* Move AST analysis for send nodes to AST::Meta
* Fix #209
2014-06-29 21:26:58 +00:00