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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80e616e80e33e55aa999b041dd1fa8c8bc4c6681bf3ed9634d058eb844693332
4
- data.tar.gz: ee659443a9957432bb3a9f27d81cd302fb80780205282a9cf45796de57885b61
3
+ metadata.gz: b3ec9e58976df4dd7611cd55dd8f7c3e21267147453e1ea6be3339a8bfc98d6f
4
+ data.tar.gz: 7ff2d500f8b308186f1db4609c5b1f14594ead77b77c77df54efc5953586a6e5
5
5
  SHA512:
6
- metadata.gz: 5e7b2019674c223768d2cce4f7a24f5c654dcfaccf44a0ffc8909ab159eea9aa653db7367274f96aae02e41edd3e1d6fbeff66d3f022e7a177a04a11dfd66412
7
- data.tar.gz: 11f142830471687a135d541b345fc423b385c940204c49db2d94f99a4cf575511cfa6738bc6db2f9bab23797d598a12145fe21d371b4f1b9a395382ec69087d9
6
+ metadata.gz: e835b21f824253f8aef9aa500f01d7a0d4235cdb17f5799858d6e66deb2afe3970e63a4761c1c0f9d97cf2522e56ead2226103e12cc87a6a6b2079add132ffcb
7
+ data.tar.gz: e81491a1f50577050c58cdc0ae11e0b230097456d71ac544c640a977927a685aa7844ef24c886385c7ab6aa1f490182c7963c0833776655c71c06b583c3ac322
checksums.yaml.gz.sig CHANGED
Binary file
@@ -71,10 +71,14 @@ module Covered
71
71
  EXECUTABLE = {
72
72
  send: true,
73
73
  yield: true,
74
- return: true,
74
+ # Line trace point is not triggered for return statements.
75
+ # return: true,
75
76
  def: true,
76
77
  if: true,
77
- lvasgn: true, ivasgn: true, cvasgn: true, gvasgn: 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? or node.type == :arg
96
+ node.nil? || IGNORE[node.type]
87
97
  end
88
98
 
89
99
  def expand(node, coverage, level = 0)
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Covered
22
- VERSION = "0.16.2"
22
+ VERSION = "0.16.3"
23
23
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: covered
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.2
4
+ version: 0.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file