Sha256: 0dd49ea67684f8438b0c8cc9b595c63d114b98106688343b4d5f02d2fff79bdc

Contents?: true

Size: 487 Bytes

Versions: 13

Compression:

Stored size: 487 Bytes

Contents

module DeepCover
  class Analyser::CoveredCodeSource < Analyser
    attr_reader :covered_code

    def initialize(covered_code)
      @covered_code = covered_code
    end

    # Looking exclusively at our subset of nodes, returns the node's direct descendants
    def node_children(node)
      node.children_nodes
    end

    # Returns the number of runs of the node (assumed to be in our subset)
    def node_runs(node)
      node.execution_count if node.executable?
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
deep-cover-0.1.14 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.13 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.12 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.11 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.10 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.9 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.8 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.7 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.6 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.5 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.4 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.3 lib/deep_cover/analyser/covered_code_source.rb
deep-cover-0.1.2 lib/deep_cover/analyser/covered_code_source.rb