Commit graph

24 commits

Author SHA1 Message Date
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
abdd367ffe Remove Mutant.constant_lookup
* Since ruby-2.1 Object.const_get does nested lookups fine
2015-06-13 03:33:20 +00:00
Markus Schirp
1332a207f6 Fix spelling of local variable names 2014-12-22 16:18:29 +00:00
Markus Schirp
b65939d527 Move bootstrapping into Env::Bootstrap
* Do not mix concerns of domain with building an object graph concerning
  the domains execution environment
* Removes the amount of clutter in Env (mostly a cleanup for tracing
  where Env will grow a bit)
2014-12-22 15:12:30 +00:00
Tim Chambers
e90e9e1ea4 Correct miscellaneous typos
Mostly comments
2014-11-22 11:16:07 -08:00
Markus Schirp
f3720a6366 Prefer Kernel#fail over Kernel#raise 2014-11-17 17:00:05 +00:00
Markus Schirp
58582a3a09 Fix Expression::Method#match_length 2014-10-08 14:56:46 +00:00
Markus Schirp
a52e2615f2 Remove dead code
* The SCOPE_PATERN constraints `namespace` to be characters that are
  valid literal static regexp.
* Not test case can be created that forces Regexp.escape here.
2014-09-17 00:49:42 +00:00
Markus Schirp
831a1750f6 Lift shared code to baseclass 2014-09-17 00:47:09 +00:00
Markus Schirp
c702c030f4 Correct exception message 2014-07-07 20:04:03 +00:00
Markus Schirp
5e7bfc0812 Use frozen constant instead of unmutated mutable literal 2014-07-06 03:43:23 +00:00
Markus Schirp
6a7b8bca52 Deep freeze composed constant 2014-07-06 03:41:43 +00:00
Markus Schirp
29023ab421 Deep freeze composed constant 2014-07-06 03:41:04 +00:00
Markus Schirp
4213789903 Nuke dead code and clean up naming 2014-07-06 02:44:55 +00:00
Markus Schirp
efa12158d1 Avoid multiple enumeration of object space 2014-07-02 17:47:51 +00:00
Markus Schirp
799f833ff8 Remove useless private access modifier 2014-06-29 23:18:11 +00:00
Markus Schirp
11b945fbbe Use expression logic for namespace matching 2014-06-29 22:52:50 +00:00
Markus Schirp
d107821b4c Fix glob expressions on method matches 2014-06-29 21:42:18 +00:00
Markus Schirp
390086f17d Add singleton and instance methods expression 2014-06-28 22:36:08 +00:00
Markus Schirp
42b8e89420 Use least powerful equality test 2014-06-16 10:50:32 +00:00
Markus Schirp
586ca63e4f Remove matcher support for :: prefixed constants
Why provide such an option? I hate options. Options are bad.
References #203.
2014-06-08 18:12:18 +00:00
Markus Schirp
4a9ab9340e Define expected mutations with less redundancy
The mutation examples are now introspectable, this allows to render nice
index or performing better automated analysis against the corpus.
2014-06-02 14:05:11 +00:00
Markus Schirp
46a427c52e Allow to match root namespace 2014-05-31 03:09:48 +00:00
Markus Schirp
2317d3cf74 Replace CLI::Classifier with Mutant::Expression 2014-05-31 01:09:27 +00:00