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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5854652b7b1aaa42b63c6cd490586691d04432c02abd26d952b0b2984f2e99b1
4
- data.tar.gz: 9ddd4fd2adf7e048f006451e0a01a9f35ea8e0f55a9b412643e2d80aa9b6a3f3
3
+ metadata.gz: 197ac8f0e893dd7238ba2031fd5e8eb49c9f7bda980b81abc1e1c5143296457d
4
+ data.tar.gz: e65098e5517dcfcf03f957a7f008ec1942068042a4a2bea65f419e659b415641
5
5
  SHA512:
6
- metadata.gz: 61e3499d17819ef947c6d2120e56fe2f0cff6b2e81089a590965b10d33b1a7a3abdc737cb944fec8644156ccbdf20b23c412f4a790843644a65c7d8df6e03b0c
7
- data.tar.gz: '0569a79cf628350f1dc3b558ce7aa143dd8f730b0c8211f49b68390fd43f4d4f93e6c01543bda614df684833b1400d17b8a964f562d762c75ab5cc6bf75790b5'
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.2
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.2
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.2
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)