mutant-minitest 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +3 -4
- data/lib/mutant/minitest/coverage.rb +0 -51
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 197ac8f0e893dd7238ba2031fd5e8eb49c9f7bda980b81abc1e1c5143296457d
|
4
|
+
data.tar.gz: e65098e5517dcfcf03f957a7f008ec1942068042a4a2bea65f419e659b415641
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa878f1501df6d387cc332b792db937a63fb060f2f1dc32c92fed615fffb328c44df94fa0631a4da76b09781cb6f0d0456dab3b0056b56b4dc2cf1d2d7d775e0
|
7
|
+
data.tar.gz: 7179755d3b1e4d23847c720b712972667082b46d39827a5191b8a518310d09136f93ce848b0f4c9a3f484bae31b1e29db756e79a1a80d673b815ac46bee220df
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant-minitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.10.
|
33
|
+
version: 0.10.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.10.
|
40
|
+
version: 0.10.3
|
41
41
|
description: Minitest integration for mutant
|
42
42
|
email:
|
43
43
|
- mbj@schirp-dso.com
|
@@ -48,7 +48,6 @@ extra_rdoc_files:
|
|
48
48
|
files:
|
49
49
|
- LICENSE
|
50
50
|
- lib/mutant/integration/minitest.rb
|
51
|
-
- lib/mutant/minitest/coverage.rb
|
52
51
|
homepage: https://github.com/mbj/mutant
|
53
52
|
licenses:
|
54
53
|
- Nonstandard
|
@@ -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)
|