oyencov 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oyencov/simplecov_resultset_translator.rb +2 -2
- data/lib/oyencov/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ba9c476e48efe6793999e48c4e278283b1522ec5f277e986639de5350763c9e
|
4
|
+
data.tar.gz: 86fcd80181d4d7f37e0c23d33f75332c2c79d91d36ba559af4b4e287865e19c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dbcadce821a07c21d77e8890d8a8a9cbe0e9c188520cbbb46d460c1f0586a3a5bdaf04db4de4556d0b409a02f83aecf7ec092e41289c18e92465341888dce50
|
7
|
+
data.tar.gz: 3d04d1e9074385d5c4bea1d4e6c5c3c54061cf13919220a7f0a6a43a17fe62862cfbc04f75c413693b3a4b936522cd468f032d32c50b6ff31cf44a3e3381e363
|
@@ -37,8 +37,8 @@ module OyenCov
|
|
37
37
|
# file_path = file_path.gsub(/#{PWD}\//o, "")
|
38
38
|
line_hits = file_attr["lines"]
|
39
39
|
MethodRangeParser[file_path]&.each_pair&.map do |method_name, line_num|
|
40
|
-
next if line_num.nil? || line_hits[line_num].nil?
|
41
|
-
[method_name, line_hits[line_num]]
|
40
|
+
next if line_num.nil? || line_hits[line_num - 1].nil?
|
41
|
+
[method_name, line_hits[line_num - 1]]
|
42
42
|
end&.compact.to_h
|
43
43
|
# methods_hits
|
44
44
|
end.reduce(:merge)
|
data/lib/oyencov/version.rb
CHANGED