Commit graph

30 commits

Author SHA1 Message Date
Tim Chambers
6f97c28442 Fix comment typo 2014-08-12 16:29:51 -07:00
Markus Schirp
efa12158d1 Avoid multiple enumeration of object space 2014-07-02 17:47:51 +00:00
Markus Schirp
d63f3d68bd Write warnings from matchers through reporter 2014-06-30 13:19:47 +00:00
Markus Schirp
3390abc675 Use environment object inside matchers
This will allow to use reporters from matchers avoiding stupid direct
writes to $stderr.

Also it will allow to remove matching from CLI altogether in a phase of
the runner. Allowing to decouple Mutant::Config from VM environment
allowing to serialize it ;)

Step by step. Takes a while.
2014-06-30 13:08:52 +00:00
Markus Schirp
b1bd02944c Delete Gemfile.lock from corpus test repo 2014-06-30 12:06:51 +00:00
Markus Schirp
3390d59954 Fix naming of Expression.{try_,}_parse
* try_parse is now the one that does not raise
* parse is now the one that does rase
2014-06-29 23:16:36 +00:00
Markus Schirp
11b945fbbe Use expression logic for namespace matching 2014-06-29 22:52:50 +00:00
Markus Schirp
c87a9e991f Fix namespace matcher API use 2014-06-29 00:23:54 +00:00
Markus Schirp
9c492d89d3 Compact warnings emmited on namespace matching 2014-06-26 20:57:14 +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
8d31d52a93 Sync devtools and fix rubocop warnings 2014-06-08 13:01:26 +00:00
Markus Schirp
83f6a22a16 Fix adjacent namespece selections
Closes #167
2014-06-06 21:31:17 +00:00
Markus Schirp
c75729ead2 Cleanup remaining use of old cli classifier 2014-06-02 12:45:29 +00:00
Markus Schirp
b86284ce50 Clarify exception message 2014-05-29 20:21:11 +00:00
Markus Schirp
f74889276b Fix crash on non String {Module,Class}#name 2014-03-26 20:38:44 +00:00
Markus Schirp
f2297e3472 Use a more error tolerant way to access {Module,Class}#name
"Many" library authors override Class or Modules #name not to return a
String or nil. They are not aware these are integral APIs for
reflection / tools. This change prints an ugly warning message in case
the API was violated.

Mutant used to crash often because of this LSP violation. This change
should provide a generic workaround.
2014-01-18 23:58:14 +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
Dan Kubb
ee72d6c042 Fix rubocop warnings
* Still a few more to go, but this should be the majority of them
2013-07-28 12:16:45 -07:00
Markus Schirp
19558c5d7c Remove bogus specific workaround 2013-07-17 14:59:47 +02:00
Markus Schirp
49133680ee Add AST caching for subject matcher
At least this dramatically speeds up unit tests. And this is a good
thing.
2013-06-27 22:18:07 +02:00
Markus Schirp
17e184efbb Add workarounds for 3rd parties not respecting Class#name 2013-06-24 22:30:25 +02:00
Markus Schirp
1f25ab3ded Cosmetic end comments 2013-06-14 21:12:10 +02:00
Markus Schirp
e41409cf87 Use concord ~> 0.1.1 2013-06-14 21:11:08 +02:00
Markus Schirp
8723d35c2f Ignore RBX specific rspec vs enumerable bug 2013-04-22 12:45:15 +02:00
Markus Schirp
3965ca4eae Add scope classifier and matcher
This simplifies the namespace matcher a lot, it can use the scope
matcher internally.
2013-04-20 21:16:48 +02:00
Markus Schirp
868eba1bce Fix code style in namespace matcher 2013-04-20 20:45:58 +02:00
Markus Schirp
84bfea0357 Cleanup namespace matcher 2013-04-19 23:36:49 +02:00
Dan Kubb
c3c0e06c86 Fix whitespace 2013-04-17 20:31:21 -07:00
Markus Schirp
eeb82ee8c6 Cleanup matcher and classifier interactions
* Some smells remain but it becomes cleaner now
2013-01-21 22:56:52 +01:00
Markus Schirp
a3fc233d95 Reorganize classifiers
* Classifiers are matcher subclass and delegate to lazy builded matcher
  interfaces
* Solves chicken egg problem between target library load and classifier
  matcher instantiation
2013-01-21 20:08:30 +01:00
Renamed from lib/mutant/matcher/object_space.rb (Browse further)