single_cov 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/single_cov/version.rb +1 -1
- data/lib/single_cov.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 51eef16fe3366d07d877dece49614137d09f7a41e7521ea72a74f873db2eeceb
|
4
|
+
data.tar.gz: aafca34498b84c660cfe546f676677336f804b618ebdeb4d7a597a11ceaa0a87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e896d61c9505e037be3d58f46fbdc207a7a9777e532edbc65b1d3c311e872ae94ca29b09b55b31920db83f0cced017fb7a0aa6d6edc627fc1dca0d7529123e3
|
7
|
+
data.tar.gz: 34bfe3a54d0c3f9e6fbfca55ea38105f44fbe9db851b7db10cf331928de177d16bafdc8c73d38dd3058d35774f2296d7450c9513550b44dc4b79e63bc4c86fdf
|
data/lib/single_cov/version.rb
CHANGED
data/lib/single_cov.rb
CHANGED
@@ -104,11 +104,14 @@ module SingleCov
|
|
104
104
|
private
|
105
105
|
|
106
106
|
def uncovered_branches(file, coverage, uncovered_lines)
|
107
|
-
coverage.each_value.flat_map do |branch_part|
|
107
|
+
found = coverage.each_value.flat_map do |branch_part|
|
108
108
|
branch_part.
|
109
109
|
select { |k, v| v.zero? && !uncovered_lines.include?(k[2]) }.
|
110
110
|
map { |k, _| "#{file}:#{k[2]}:#{k[3]+1}-#{k[4]}:#{k[5]+1}" }
|
111
111
|
end
|
112
|
+
found.sort!
|
113
|
+
found.uniq!
|
114
|
+
found
|
112
115
|
end
|
113
116
|
|
114
117
|
def default_tests
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: single_cov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
version: '0'
|
40
40
|
requirements: []
|
41
41
|
rubyforge_project:
|
42
|
-
rubygems_version: 2.
|
42
|
+
rubygems_version: 2.7.3
|
43
43
|
signing_key:
|
44
44
|
specification_version: 4
|
45
45
|
summary: Actionable code coverage.
|