undercover 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/undercover.rb +1 -0
- data/lib/undercover/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: d59941488c038fb70ce49c2b5e05e85695f076a8dc97c9a0948b4f158ae5be63
|
4
|
+
data.tar.gz: '019136f219f0d4a77d973d882feb747bd0ac6a95d0609572c98ca38103ddc8a3'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5430c18e8cef09a54d07419aa32adcdc29ad887db6c719168b3f4bb347473c3612c670a7be6864cdb11c07b4b21a39c45f1456f2438979eff3db5c8ab6dbdef1
|
7
|
+
data.tar.gz: 523970464fff725778c3f37d2425cd9fbb02f8b1ce0211856b856d3fa14a43a86a97be678bdb92898bef3ab8fd5101cb2ce7e0b2ee7d7598c9076df1b346a16d
|
data/lib/undercover.rb
CHANGED
@@ -83,6 +83,7 @@ module Undercover
|
|
83
83
|
lcov.source_files.each do |filename, coverage|
|
84
84
|
path = File.join(code_dir, filename)
|
85
85
|
root_ast = Imagen::Node::Root.new.build_from_file(path)
|
86
|
+
next if root_ast.children.empty?
|
86
87
|
root_ast.children[0].find_all(match_all).each do |node|
|
87
88
|
yield(path, coverage, node)
|
88
89
|
end
|
data/lib/undercover/version.rb
CHANGED