mutant 0.10.1 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4645aa0ee3e10159d6e91c5762b1f43bd11a94e229ea2cdec29af0f15d922f92
|
4
|
+
data.tar.gz: 3c8eb88ab56bd83c1b4e26eb18ccb1c51f43875c3db5e36453661837e88b16b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e961ab0e43eb8208f8a9c5dc626fb3787e37f81fbf96be9f4e3da0fb2532556dcf93ed491bf29fbedc7c099c0a6ad4e81b4b32448e5615fe2fb37b1bb08dd2b
|
7
|
+
data.tar.gz: c9d2e9344bcbfdeeb7a3108cfa5b94bae2b8527fdf03ae5f4a346f2d207371c40319a79f7a44782a0d8d98003834bf22d79188e46d555d9c18f1444d7fa3149a
|
@@ -46,6 +46,7 @@ module Mutant
|
|
46
46
|
value
|
47
47
|
.fetch('repositories')
|
48
48
|
.map(&Repository.public_method(:parse))
|
49
|
+
.to_set
|
49
50
|
)
|
50
51
|
end
|
51
52
|
|
@@ -59,7 +60,7 @@ module Mutant
|
|
59
60
|
private
|
60
61
|
|
61
62
|
def check_subscription(actual)
|
62
|
-
if (licensed
|
63
|
+
if (licensed & actual).any?
|
63
64
|
success
|
64
65
|
else
|
65
66
|
failure(licensed, actual)
|
data/lib/mutant/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: abstract_type
|
@@ -342,7 +342,6 @@ files:
|
|
342
342
|
- lib/mutant/meta/example.rb
|
343
343
|
- lib/mutant/meta/example/dsl.rb
|
344
344
|
- lib/mutant/meta/example/verification.rb
|
345
|
-
- lib/mutant/minitest/coverage.rb
|
346
345
|
- lib/mutant/mutation.rb
|
347
346
|
- lib/mutant/mutator.rb
|
348
347
|
- lib/mutant/mutator/node.rb
|
@@ -1,51 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'minitest'
|
4
|
-
|
5
|
-
module Mutant
|
6
|
-
module Minitest
|
7
|
-
module Coverage
|
8
|
-
# Setup coverage declaration for current class
|
9
|
-
#
|
10
|
-
# @param [String]
|
11
|
-
#
|
12
|
-
# @example
|
13
|
-
#
|
14
|
-
# class MyTest < MiniTest::Test
|
15
|
-
# cover 'MyCode*'
|
16
|
-
#
|
17
|
-
# def test_some_stuff
|
18
|
-
# end
|
19
|
-
# end
|
20
|
-
#
|
21
|
-
# @api public
|
22
|
-
def cover(expression)
|
23
|
-
@cover_expressions = Set.new unless defined?(@cover_expressions)
|
24
|
-
|
25
|
-
@cover_expressions << expression
|
26
|
-
end
|
27
|
-
|
28
|
-
# Effective coverage expression
|
29
|
-
#
|
30
|
-
# @return [Set<String>]
|
31
|
-
#
|
32
|
-
# @api private
|
33
|
-
def resolve_cover_expressions
|
34
|
-
return @cover_expressions if defined?(@cover_expressions)
|
35
|
-
|
36
|
-
try_superclass_cover_expressions
|
37
|
-
end
|
38
|
-
|
39
|
-
private
|
40
|
-
|
41
|
-
def try_superclass_cover_expressions
|
42
|
-
return if superclass.equal?(::Minitest::Runnable)
|
43
|
-
|
44
|
-
superclass.resolve_cover_expressions
|
45
|
-
end
|
46
|
-
|
47
|
-
end # Coverage
|
48
|
-
end # Minitest
|
49
|
-
end # Mutant
|
50
|
-
|
51
|
-
Minitest::Test.extend(Mutant::Minitest::Coverage)
|