Commit graph

19 commits

Author SHA1 Message Date
Markus Schirp
49517af01c Add rescue/else-body promotion/concatenation mutation
[fix #245]
2014-08-16 20:58:08 +00:00
Markus Schirp
3654ba010d Remove remaining encoding headers 2014-08-10 21:33:44 +00:00
Markus Schirp
e3d4f62f95 Fix index assignment mutations 2014-06-15 15:34:45 +00:00
Markus Schirp
ac179cd450 Remove useless mutations and fix index reference 2014-06-15 13:12:11 +00:00
Markus Schirp
8b09927a7b Correct use of node type predicates 2014-06-10 02:22:02 +00:00
Markus Schirp
3ae85ea0f9 Refactor and consolidate node type checks in to private methods
* Before Symbol#==, Symbol#eql?, and Symbol#equal? where used
  inconsistently
* Lots of redundant foo.type.equal?(:symbol)
2014-06-10 02:06:00 +00:00
Markus Schirp
a19f3b1691 Nuke UTF-8 encoding headers
* I do not use 1.9.3
* Also keeping them in each file increases mental overhead (true it *can* be autoamted)
* None of the files encodes NON ASCII chars.
* I do not expect it makes any difference, since nobody programmatically
  will consume strings generated by mutant under the assumption they are UTF-8 encoded.
* 1.9.3 Users have to deal with the encoding fuckup under ruby anyways.
2014-06-09 15:37:48 +00:00
Markus Schirp
a227c2f1d2 Rename emit_self to emit_type 2014-06-03 03:51:22 +00:00
Markus Schirp
a53217f83c Fix overlong line with horrible formatting 2014-04-22 17:49:55 +00:00
Markus Schirp
5dc4ad2e4c Fix invalid ASTs on mutating attribute assignments
* Also move index reference / assignment mutators to dedicated file
* Move attribute assignment cases to subclass
* Mutations emitted never had been invalid. Since invalid AST was parsed
  to valid source as unparser trusts the AST.
2014-04-22 17:01:48 +00:00
Markus Schirp
a29ffe7c98 Add equality mutations
* Closes #132
2014-03-30 14:57:46 +00:00
Dan Kubb
7293386c26 Add magic encoding header to all ruby files
* rubocop still warns about this on ruby 1.9.3, so it was fixed so
  it produces less output on travis.
2013-07-28 16:03:06 -07:00
Markus Schirp
8b7be8a565 Fix propagation of splat args
Closes #39
2013-06-21 16:18:12 +02:00
Markus Schirp
d364c7b519 Use and improve child nameing for send mutator 2013-06-21 15:51:30 +02:00
Markus Schirp
8993fbf02a Port binary method operator mutator to parser 2013-06-14 21:12:10 +02:00
Markus Schirp
6b2e2a8bb0 Initial round of refactoring
* Remove some RBX only nodes
* Register parser types
* Remove all occurences of ::Rubinius when loading libraries
2013-06-14 21:11:54 +02:00
Dan Kubb
c3c0e06c86 Fix whitespace 2013-04-17 20:31:21 -07:00
Markus Schirp
97a75dd062 Cleanup mutation generation
This is a reaction to the to_source rewrite

* Do not use 1.8 specific nodes anymore
* Do not generate AST nodes that would not be generatable from source
2013-01-09 20:43:06 +01:00
Markus Schirp
eb6ea9a74f Metric driven code refactoring
Break some classes, rename stuff etc.
2013-01-04 22:16:03 +01:00