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 +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/undercover/result.rb +3 -1
- data/lib/undercover/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb2b1b1bd08b3e0cee5d4078f630f044e0c6b0439e10f3ee0fff6fda6690f66d
|
4
|
+
data.tar.gz: c0944771464ed6b6569ea637d868a495b73790dce296ed09e940e8036ea1f1e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/undercover/result.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/undercover/version.rb
CHANGED
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.
|
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
|
+
date: 2021-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: imagen
|