undercover 0.4.1 → 0.4.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: 04fa40baf15828da2f2adfb2e339448b601b474ca88c32258154cdf5a1d7464c
4
- data.tar.gz: d591475e8a41e993a9fe813d7fc56e40d0072f6d40db1941f9224db2baf7f3f8
3
+ metadata.gz: fb2b1b1bd08b3e0cee5d4078f630f044e0c6b0439e10f3ee0fff6fda6690f66d
4
+ data.tar.gz: c0944771464ed6b6569ea637d868a495b73790dce296ed09e940e8036ea1f1e4
5
5
  SHA512:
6
- metadata.gz: 3f22a3d8e54f6ae67a59c08191b49127edb2c8f243dabcdb5e781422a82e40b00b0f0c2dc0a25a0ba3c74dafa32fa9d0c1db62121394b0ef2cbc32dcb3325864
7
- data.tar.gz: 8578f0ac0e9100ab75c43c089db838b52658aed5c53b06c34d2935fd75964f406ee35e2e87c567a0b3cbdfb4af601acafc1d70db1271ae64e3a9224a0974ac65
6
+ metadata.gz: 8184500fa7887d8a7163f43e748970726b750fc9eab05a952fe842895504629458025a038e5d7a30e0179a18e32e88d54909633c0e9eb055dbb58272cf9f5d4d
7
+ data.tar.gz: 176828f523ca2d4479a3b04807007d147c36b234e65ee6815bc2a20ab19dce04af27a44cbecfc31c60d738ea553b1560144fe315c26a4da247a73dcf41ad1efb
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ # [0.4.2] - 2021-03-16
10
+ ### Fixed
11
+ - Branch coverage without line coverage marked as uncovered - fix by @GCorbel
12
+
9
13
  # [0.4.1] - 2021-03-11
10
14
  ### Fixed
11
15
  - Fix zero-division edge case resulting in NaN from Result#coverage_f
@@ -99,7 +103,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99
103
  ### Added
100
104
  - First release of `undercover` 🎉
101
105
 
102
- [Unreleased]: https://github.com/grodowski/undercover/compare/v0.3.4...HEAD
106
+ [Unreleased]: https://github.com/grodowski/undercover/compare/v0.4.2...HEAD
107
+ [0.4.1]: https://github.com/grodowski/undercover/compare/v0.4.1...v0.4.2
103
108
  [0.4.1]: https://github.com/grodowski/undercover/compare/v0.4.0...v0.4.1
104
109
  [0.4.0]: https://github.com/grodowski/undercover/compare/v0.3.4...v0.4.0
105
110
  [0.3.4]: https://github.com/grodowski/undercover/compare/v0.3.3...v0.3.4
@@ -28,11 +28,13 @@ module Undercover
28
28
  end
29
29
 
30
30
  def uncovered?(line_no)
31
+ # check branch coverage for line_no
31
32
  coverage.each do |ln, _block, _branch, cov|
32
33
  return true if ln == line_no && cov && cov.zero?
33
34
  end
34
35
 
35
- line_cov = coverage.find { |ln, _cov| ln == line_no }
36
+ # check line coverage for line_no
37
+ line_cov = coverage.select { |cov| cov.size == 2 }.find { |ln, _cov| ln == line_no }
36
38
  line_cov && line_cov[1].zero?
37
39
  end
38
40
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Undercover
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: undercover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-11 00:00:00.000000000 Z
11
+ date: 2021-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: imagen