lib/covered/source.rb in covered-0.16.0 vs lib/covered/source.rb in covered-0.16.1

- old
+ new

@@ -66,11 +66,20 @@ super end attr :paths + EXECUTABLE = { + send: true, + yield: true, + return: true, + lvar: true, + ivar: true, + def: true + } + def executable?(node) - node.type == :send || node.type == :yield + EXECUTABLE[node.type] end def ignore?(node) node.nil? or node.type == :arg end