Commit graph

31 commits

Author SHA1 Message Date
Markus Schirp
70b4230399 Drop Subject#public?
* A relict from the days where test selection depended on this
  information
* Kill mutations in Mutation#insert, also very old code.
2015-10-31 01:27:57 +00:00
Markus Schirp
c025728a09 Fix documentation for memoized subject instances
* This is not a class handling *all* memoizations.
  Just on especific cases where the memoization semantics had been
  set-up via the memoizable gem.
2015-08-18 22:37:56 +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
d647563055 Refactor expression parsing and representation
* Avoids boot time mutation of REGISTER constant
* Allows to define project specific expression parsing
* Avoids custom (slow) serialization of Expression objects speeding up
  reporter / killer IPC
* Improve specification
* Improve integration API as it now finally references an object the config
* Allow reproduction of syntax from Expression#syntax
* Allow instantiation of Expresssion objects without generating the
  syntax, much nicer for most specs & internal code, avoids generating
  a string to parse it into an expression
* Fix LSP violation in Mutant::Matcher namespace
2015-06-21 14:44:33 +00:00
Markus Schirp
ad05adafc8 Remove duplicate between memoized and abstract subject class 2014-12-07 21:27:38 +00:00
Markus Schirp
2d6694bb82 Use canonical form of Object#send with #__send__ 2014-12-07 21:14:54 +00:00
Markus Schirp
ae7284f39a Remove warning expectations
* Warnings do not disturb master output anymore as we redirect stderr of
  children to dev null. So the main reason for adding this feature is
  gone. BTW Its planned to capture the stderr of childrens later.
* Warning expectations do not work very well under zombification as line
  numbers change.
2014-11-27 16:37:28 +00:00
Markus Schirp
55add54691 Fix style
* Actually a hack to move an uncovered line togehter with a covered one.
* Will someone notice and complain?
* Is there a better idea?
2014-11-17 21:19:50 +00:00
Markus Schirp
23bf4d2bd6 Fix duplicate emit of neutral mutaiton on memoized instance methods 2014-11-17 21:13:07 +00:00
Markus Schirp
abc52ebbce Add special case for zombified warning expectations 2014-09-17 00:43:58 +00:00
Markus Schirp
3efbfd2dad Move corpus test infrastructure into spec/support 2014-07-12 16:26:28 +00:00
Markus Schirp
914c7cbc1d Replace unmutated empty array literals with frozen EMPTY_ARRAY 2014-07-08 10:42:57 +00:00
Dan Kubb
8f2dc9dc90 Move RUBY_ENGINE test outside of the runtime method 2014-07-06 17:24:14 -07:00
Dan Kubb
2c13a79147 Add list of methods that will warn when undefined 2014-07-06 17:23:57 -07:00
Dan Kubb
21d5fe5dfb Fix code alignment 2014-07-06 17:23:17 -07:00
Markus Schirp
473aeace90 Fix neutral/vs noop mutation naming 2014-07-05 23:32:07 +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
Markus Schirp
5fdaf9de15 Kill redundant YARD docs 2014-06-15 19:28:57 +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
822ddd799f Make non mri specific specs pass under RBX 2014-06-08 19:51:04 +00:00
Markus Schirp
5f6ff99ece Consolidate ruby style 2014-05-27 15:16:37 +00:00
Markus Schirp
061ab04a36 Minimize cross inheritance duplication 2014-05-11 21:15:05 +00:00
Markus Schirp
85061dee96 Add warning expecatation filter for undef initialize
* Closes #175
2014-04-22 19:00:12 +00:00
Markus Schirp
df7de1ee86 Delete memoizer on Subject#prepare 2014-03-28 15:42:46 +00:00
Markus Schirp
15dc96f112 Fix undef before insertion for singleton methods 2014-03-15 17:00:20 +00:00
Markus Schirp
681b51f6ac Fix multiple diff reporter errors on memoizers
Closes #130
2013-10-30 09:08:10 +01: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
e79443e17d Bring subject mutator refactoring to memoized subject
* This lib shows more and more sights of missing mutation coverage.
2013-07-15 23:19:53 +02:00
Markus Schirp
023df844f9 Correctly emit memoizers for memoized method mutations 2013-07-05 13:28:21 +02:00
Markus Schirp
47bca3fa1f Correct mutation of adamantium memoized methods 2013-07-05 01:14:05 +02:00