mutant 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/mutant +0 -7
- data/lib/mutant/reporter/cli/printer/env_result.rb +9 -0
- data/lib/mutant/version.rb +8 -14
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4eb76ac40bf4c263a5201b009dbc0760df5191918754bd47452017a4c97ac9b
|
|
4
|
+
data.tar.gz: b7ed8bb7728602995b796d7950d7c5ed445a3d9e775f7ad69b0dd5e91da3a69f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27d3948ff6e67c670aefe552fad358d333ee584d48090f13b14d15bee01a756dd6982be5922200dd0d2d939916b9d97e02c862b5d3487c9fd7572688affa544d
|
|
7
|
+
data.tar.gz: 3155f5599aa51d7d8644fbac0f4f6edb0f2e63d26bd70ca87f20b820f492ba07fa773ec974ad474f3ec08b652acc89eb23033124925c37f933e84eee803f0219
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.15.
|
|
1
|
+
0.15.1
|
data/bin/mutant
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
# Dispatcher that selects between mutant-ruby and mutant-rust
|
|
5
|
-
# based on MUTANT_RUST environment variable.
|
|
6
|
-
#
|
|
7
|
-
# See RUST.md for documentation.
|
|
8
|
-
|
|
9
|
-
fail 'MUTANT_RUST=1 is not yet supported via gem installation' if ENV['MUTANT_RUST']
|
|
10
|
-
|
|
11
4
|
exec('mutant-ruby', *ARGV)
|
|
@@ -8,10 +8,19 @@ module Mutant
|
|
|
8
8
|
class EnvResult < self
|
|
9
9
|
delegate(:failed_subject_results)
|
|
10
10
|
|
|
11
|
+
ALIVE_EXPLANATION = <<~'MESSAGE'
|
|
12
|
+
Alive mutations require one of two actions:
|
|
13
|
+
A) Keep the mutated code: Your tests specify the correct semantics,
|
|
14
|
+
and the original code is redundant. Accept the mutation.
|
|
15
|
+
B) Add a missing test: The original code is correct, but the tests
|
|
16
|
+
do not verify the behavior the mutation removed.
|
|
17
|
+
MESSAGE
|
|
18
|
+
|
|
11
19
|
# Run printer
|
|
12
20
|
#
|
|
13
21
|
# @return [undefined]
|
|
14
22
|
def run
|
|
23
|
+
puts(ALIVE_EXPLANATION) if failed_subject_results.any?
|
|
15
24
|
visit_collection(SubjectResult, failed_subject_results)
|
|
16
25
|
visit(EnvProgress, object)
|
|
17
26
|
end
|
data/lib/mutant/version.rb
CHANGED
|
@@ -4,19 +4,13 @@ require 'pathname'
|
|
|
4
4
|
|
|
5
5
|
module Mutant
|
|
6
6
|
# Current mutant version
|
|
7
|
-
#
|
|
8
|
-
# See RUST.md for documentation on version loading behavior.
|
|
9
7
|
VERSION =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
.read
|
|
19
|
-
.chomp
|
|
20
|
-
.freeze
|
|
21
|
-
end
|
|
8
|
+
Pathname
|
|
9
|
+
.new(__dir__)
|
|
10
|
+
.parent
|
|
11
|
+
.parent
|
|
12
|
+
.join('VERSION')
|
|
13
|
+
.read
|
|
14
|
+
.chomp
|
|
15
|
+
.freeze
|
|
22
16
|
end # Mutant
|