C0 code coverage information

Generated on Wed Aug 01 14:04:24 -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/attributes/code.rb 61 43
93.4% 
90.7% 
 1 require 'pool_helper'
 2 
 3 module YAJD
 4 
 5 module Attributes
 6 
 7 class CodeInfo < AttributeInfo
 8     def initialize(constant_pool, attribute_name_index, parent, f)
    def initialize(constant_pool, attribute_name_index, parent, f)
    248   lib/attributes/attribute.rb:14 in '#<Class:YAJD::Attributes>#factory'

 9         super(constant_pool, attribute_name_index, parent)
        super(constant_pool, attribute_name_index, parent)
    248   YAJD::Attributes::AttributeInfo#initialize at lib/attributes/attribute.rb:31

10         # TODO this is attribute_length. I should check everything read for this attribute sums up the attribute_length
11         f.read_u4
        f.read_u4
    248   File#read_u4 at lib/ext/file.rb:15

12         @max_stack = f.read_u2
        @max_stack = f.read_u2
    248   File#read_u2 at lib/ext/file.rb:10

13         @max_locals = f.read_u2
        @max_locals = f.read_u2
    248   File#read_u2 at lib/ext/file.rb:10

14         @code = f.readbytes(f.read_u4)
        @code = f.readbytes(f.read_u4)
    248   File#readbytes at lib/ext/file.rb:34
    248   File#read_u4 at lib/ext/file.rb:15

15         @exception_table = f.read_list { |f| ExceptionTable.new(constant_pool, f) }
        @exception_table = f.read_list { |f| ExceptionTable.new(constant_pool, f) }
    248   File#read_list at lib/ext/file.rb:22
     31   YAJD::Attributes::ExceptionTable#initialize at lib/attributes/code.rb:47

16         # TODO verify the attributes are only of the expected type for Code
17         @attributes = f.read_list { |f| YAJD::Attributes.factory(constant_pool, self, f) }
        @attributes = f.read_list { |f| YAJD::Attributes.factory(constant_pool, self, f) }
    248   File#read_list at lib/ext/file.rb:22
    246   #<Class:YAJD::Attributes>#factory at lib/attributes/attribute.rb:7

18     end
19 
20     def code_length
21         @code.size
22     end
23 
24     def exception_table_length
25         @exception_table.size
26     end
27 
28     def line_number_table
    def line_number_table
    248   lib/visitor/javap/code_info.rb:292 in 'YAJD::Visitor::Javap::CodeInfoVisitor#dump_line_numbers'

29         attributes.find do |attr|
30             attr.is_a?(LineNumberTableInfo)
31         end
32     end
33 
34     def method
    def method
    248   lib/visitor/javap/code_info.rb:331 in 'YAJD::Visitor::Javap::CodeInfoVisitor#dump_code'
    248   lib/visitor/javap/code_info.rb:326 in 'YAJD::Visitor::Javap::CodeInfoVisitor#dump_code'

35         @parent
36     end
37 
38     attr_reader :attribute_length, :max_stack, :max_locals, :code, :attributes, :exception_table
39 
40 end
41 
42 class ExceptionTable
43     include PoolHelper
    include PoolHelper
      1   #<Class:YAJD::PoolHelper>#included at lib/pool_helper.rb:5

44 
45     pool_getter :catch_class, :catch_type
    pool_getter :catch_class, :catch_type
      1   #<Class:YAJD::Attributes::ExceptionTable>#pool_getter at lib/pool_helper.rb:8

46 
47     def initialize(pool, f)
    def initialize(pool, f)
     31   lib/attributes/code.rb:15 in 'YAJD::Attributes::CodeInfo#initialize'

48         @pool = pool
49         @start_pc = f.read_u2
        @start_pc = f.read_u2
     31   File#read_u2 at lib/ext/file.rb:10

50         @end_pc = f.read_u2
        @end_pc = f.read_u2
     31   File#read_u2 at lib/ext/file.rb:10

51         @handler_pc = f.read_u2
        @handler_pc = f.read_u2
     31   File#read_u2 at lib/ext/file.rb:10

52         @catch_type = f.read_u2
        @catch_type = f.read_u2
     31   File#read_u2 at lib/ext/file.rb:10

53     end
54 
55     attr_reader :start_pc, :end_pc, :handler_pc, :catch_type
56 
57 end
58 
59 end
60 
61 end

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

Valid XHTML 1.0! Valid CSS!