--- !ruby/object:RI::ClassDescription 
attributes: 
- !ruby/object:RI::Attribute 
  comment: 
  name: counts
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  name: coverage
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  name: lines
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  name: name
  rw: R
class_methods: 
- !ruby/object:RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:SM::Flow::P 
  body: "A FileStatistics object associates a filename to:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "1."
    body: its source code
  - !ruby/struct:SM::Flow::LI 
    label: "2."
    body: the per-line coverage information after correction using rcov's heuristics
  - !ruby/struct:SM::Flow::LI 
    label: "3."
    body: the per-line execution counts
  type: :NUMBER
- !ruby/struct:SM::Flow::P 
  body: A FileStatistics object can be therefore be built given the filename, the associated source code, and an array holding execution counts (i.e. how many times each line has been executed).
- !ruby/struct:SM::Flow::P 
  body: "FileStatistics is relatively intelligent: it handles normal comments, <tt>=begin/=end</tt>, heredocs, many multiline-expressions... It uses a number of heuristics to determine what is code and what is a comment, and to refine the initial (incomplete) coverage information."
- !ruby/struct:SM::Flow::P 
  body: "Basic usage is as follows:"
- !ruby/struct:SM::Flow::VERB 
  body: " sf = FileStatistics.new(&quot;foo.rb&quot;, [&quot;puts 1&quot;, &quot;if true &amp;&amp;&quot;, &quot;   false&quot;,\n                                &quot;puts 2&quot;, &quot;end&quot;],  [1, 1, 0, 0, 0])\n sf.num_lines        # =&gt; 5\n sf.num_code_lines   # =&gt; 5\n sf.coverage[2]      # =&gt; true\n sf.coverage[3]      # =&gt; :inferred\n sf.code_coverage    # =&gt; 0.6\n"
- !ruby/struct:SM::Flow::P 
  body: The array of strings representing the source code and the array of execution counts would normally be obtained from a Rcov::CodeCoverageAnalyzer.
constants: []

full_name: Rcov::FileStatistics
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: code_coverage
- !ruby/object:RI::MethodSummary 
  name: is_code?
- !ruby/object:RI::MethodSummary 
  name: merge
- !ruby/object:RI::MethodSummary 
  name: num_code_lines
- !ruby/object:RI::MethodSummary 
  name: num_lines
- !ruby/object:RI::MethodSummary 
  name: total_coverage
name: FileStatistics
superclass: Object
