mutant v0.10.26 Release Notes
Release Date: 2021-01-16 // over 3 years ago-
-
- Add
#reduce
->#sum
mutations a.reduce(:+)
->a.sum
a.reduce(0, &:+)
->a.sum(0)
- Add
-
- Add
/\Astatic/
->#start_with?
mutations: a.match(/\Atext/)
->b.start_with?('text')
a.match?(/\Atext/)
->b.start_with?('text')
a =~ /\Atext/
->b.start_with?('text')
- Add
/static\z/
->#end_with?
mutations: a.match(/text\z/)
->b.end_with?('text')
a.match?(/text\z/)
->b.end_with?('text')
a =~ /text\z/
->b.end_with?('text')
- Add
-
- Add unused group name mutation:
/(?<foo>bar)/
->/(?<_foo>bar)/
.
- Add unused group name mutation:
-
- Add
mutant environment test list
subcommand. Useful to verify which tests mutant detects as candiates for test selection.
- Add
-
- Allow constants to be passed to minitest integrations
cover
declaration.cover SomeClass
is equivalent tocover 'SomeClass*'
.
- Allow constants to be passed to minitest integrations
-
- Add mutation from named capturing group to non-capturing group:
/(?<foo>bar)/
->/(?:bar)
.
- Add mutation from named capturing group to non-capturing group:
-