covered 0.16.2 → 0.16.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/covered/source.rb +13 -3
- data/lib/covered/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3ec9e58976df4dd7611cd55dd8f7c3e21267147453e1ea6be3339a8bfc98d6f
|
4
|
+
data.tar.gz: 7ff2d500f8b308186f1db4609c5b1f14594ead77b77c77df54efc5953586a6e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e835b21f824253f8aef9aa500f01d7a0d4235cdb17f5799858d6e66deb2afe3970e63a4761c1c0f9d97cf2522e56ead2226103e12cc87a6a6b2079add132ffcb
|
7
|
+
data.tar.gz: e81491a1f50577050c58cdc0ae11e0b230097456d71ac544c640a977927a685aa7844ef24c886385c7ab6aa1f490182c7963c0833776655c71c06b583c3ac322
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/covered/source.rb
CHANGED
@@ -71,10 +71,14 @@ module Covered
|
|
71
71
|
EXECUTABLE = {
|
72
72
|
send: true,
|
73
73
|
yield: true,
|
74
|
-
return
|
74
|
+
# Line trace point is not triggered for return statements.
|
75
|
+
# return: true,
|
75
76
|
def: true,
|
76
77
|
if: true,
|
77
|
-
lvasgn: true,
|
78
|
+
lvasgn: true,
|
79
|
+
ivasgn: true,
|
80
|
+
cvasgn: true,
|
81
|
+
gvasgn: true,
|
78
82
|
match_pattern: true
|
79
83
|
}
|
80
84
|
|
@@ -82,8 +86,14 @@ module Covered
|
|
82
86
|
EXECUTABLE[node.type]
|
83
87
|
end
|
84
88
|
|
89
|
+
IGNORE = {
|
90
|
+
arg: true,
|
91
|
+
# Ruby doesn't appear to execute rescue lines.
|
92
|
+
rescue: true
|
93
|
+
}
|
94
|
+
|
85
95
|
def ignore?(node)
|
86
|
-
node.nil?
|
96
|
+
node.nil? || IGNORE[node.type]
|
87
97
|
end
|
88
98
|
|
89
99
|
def expand(node, coverage, level = 0)
|
data/lib/covered/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|