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
017ccc1044
Add expression => self mutation
...
Also reorganizes parts of meta to align filenames to node name better.
Closes #191
2014-06-05 17:48:39 +00:00
Markus Schirp
4625a2d861
Remove unneded toplevel reference
2014-05-11 15:18:37 +00:00
Markus Schirp
63d9b43a36
Remove unused constant
2014-05-11 15:17:59 +00:00
Markus Schirp
a3b558bec0
Remove guard via identity
...
* Simplify spec helper via mutation verifier class
* There was no need to guard via mapped identity anymore.
2014-04-12 01:13:26 +00:00
Markus Schirp
a7c3dc5339
Improve AST coverage of mutant
...
* Uses a monkeypach extension to parser with a list of valid node types.
* Add nodes, found to be uncovered to generic mutator.
2013-12-29 22:44:32 +01:00
Markus Schirp
212831b107
Refactor mutation emitter to support unparser 0.1.0
...
Cleans up the body mutator and fix blind spot.
2013-09-06 01:43:17 +02: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
0faf7b0a84
Fix style issues in Mutant::NodeHelpers
2013-07-29 00:25:15 +02:00
Markus Schirp
efd6a52f16
Hardcode AST like parser would produce it
2013-07-28 18:46:29 +02:00
Dan Kubb
ddc0b79ed6
Add Mutant::NodeHelpers#n_not
2013-07-24 10:53:37 -07:00
Dan Kubb
28ffff59d0
Fix whitespace
2013-07-24 10:53:29 -07:00
Dan Kubb
62d9e30570
Move true and false nodes above nil
2013-07-23 23:30:04 -07:00
Dan Kubb
ecfd388ad3
Add N_TRUE and N_FALSE node helpers
2013-07-23 23:23:45 -07:00
Markus Schirp
04c72c5d0f
Replace empty body/block mutations with raise
2013-07-02 20:42:09 +02:00
Markus Schirp
586a4d3e1b
Use constant nodes when possible
2013-06-21 15:07:40 +02:00
Markus Schirp
02dee45458
Port literal float emitter to parser
...
Also simplify emitter for special float cases Nan, Inf, -Inf
2013-06-14 21:12:09 +02:00
Markus Schirp
fca5b8a168
Port method extraction to parser based ast
2013-06-14 21:11:54 +02:00