C0 code coverage information

Generated on Wed Aug 01 14:04:26 -0300 2007 with rcov 0.8.0


Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
Name Total lines Lines of code Total coverage Code coverage
lib/constant_pool/strings.rb 56 38
92.9% 
89.5% 
 1 require 'pool_helper'
 2 
 3 module YAJD
 4 
 5 module ConstantPool
 6 
 7 class CString < CPInfo
 8     include PoolHelper
    include PoolHelper
      1   #<Class:YAJD::PoolHelper>#included at lib/pool_helper.rb:5

 9 
10     # Returns the utf8 string referenced by this string. It assumes this instance passed the validations.
11     pool_getter :string
    pool_getter :string
      1   #<Class:YAJD::ConstantPool::CString>#pool_getter at lib/pool_helper.rb:8

12 
13     def initialize(pool, tag, f)
    def initialize(pool, tag, f)
     47   lib/constant_pool/cpinfo.rb:66 in '#<Class:YAJD::ConstantPool::CPInfo>#create_instance'

14         super(pool, tag)
        super(pool, tag)
     47   YAJD::ConstantPool::CPInfo#initialize at lib/constant_pool/cpinfo.rb:11

15         @string_index = f.read_u2
        @string_index = f.read_u2
     47   File#read_u2 at lib/ext/file.rb:10

16     end
17 
18     def to_s
19         "#{self.class}: #{@string_index}"
20     end
21 
22     def validate(constant_pool)
    def validate(constant_pool)
     39   lib/constant_pool.rb:35 in 'YAJD::ConstantPool::Pool#validate'

23         check_ref_utf(constant_pool, string_index)
        check_ref_utf(constant_pool, string_index)
     39   YAJD::ConstantPool::CPInfo#check_ref_utf at lib/constant_pool/cpinfo.rb:43

24     end
25 
26     attr_reader :string_index
27 
28     def value
    def value
     48   lib/visitor/javap/code_info.rb:116 in 'YAJD::Visitor::Javap::CodeInfoVisitor#refactor_me'
     48   lib/visitor/javap/code_info.rb:114 in 'YAJD::Visitor::Javap::CodeInfoVisitor#refactor_me'
     29   lib/visitor/javap/code_info.rb:125 in 'YAJD::Visitor::Javap::CodeInfoVisitor#refactor_me'

29         string.bytes
        string.bytes
    125   YAJD::ConstantPool::CString#string at (eval):2

30     end
31 end
32 
33 class CUTF8Info < CPInfo
34     def initialize(pool, tag, f)
    def initialize(pool, tag, f)
    978   lib/constant_pool/cpinfo.rb:66 in '#<Class:YAJD::ConstantPool::CPInfo>#create_instance'

35         super(pool, tag)
        super(pool, tag)
    978   YAJD::ConstantPool::CPInfo#initialize at lib/constant_pool/cpinfo.rb:11

36         @bytes = f.readbytes(f.read_u2)
        @bytes = f.readbytes(f.read_u2)
    978   File#readbytes at lib/ext/file.rb:34
    978   File#read_u2 at lib/ext/file.rb:10

37     end
38 
39     def length
40         @bytes.length
41     end
42 
43     attr_reader :bytes
44 
45     def to_s
    def to_s
      2   lib/visitor/javap/method_info.rb:75 in 'YAJD::Visitor::Javap::MethodInfoVisitor#dump_attributes'

46         "#{self.class}: #{@bytes}"
47     end
48 
49     def validate(constant_pool)
    def validate(constant_pool)
    566   lib/constant_pool.rb:35 in 'YAJD::ConstantPool::Pool#validate'

50         #TODO check the format of @bytes
51     end
52 end
53 
54 end
55 
56 end

Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.

Valid XHTML 1.0! Valid CSS!