Branch Coverage

blib/lib/CORBA/JAVA/ClassVisitor.pm
Criterion Covered Total %
branch 0 532 0.0


line true false branch
45 0 0 if $suffix =~ /^Stub/
47 0 0 if ($dirname) { }
49 0 0 unless (-d $dirname)
50 0 0 unless mkpath($dirname)
58 0 0 unless open $$self{'out'}, '>', $filename
64 0 0 if $$node{'java_package'}
78 0 0 unless $$self{'srcname'} eq $$node{'filename'}
81 0 0 if ($class =~ /^Forward/)
93 0 0 if (ref $defn) { }
104 0 0 unless $$node{'doc'}
108 0 0 unless $_
118 0 0 unless $type
127 0 0 if (scalar @array) { }
178 0 0 unless (exists $$node{$$self{'num_key'}})
250 0 0 if ($node->isa('AbstractInterface')) { }
260 0 0 if ($node->isa('AbstractInterface')) { }
268 0 0 if ($node->isa('RegularInterface') and exists $$node{'inheritance'} and exists $$node{'inheritance'}{'list_interface'})
272 0 0 if $base->isa('AbstractInterface')
274 0 0 if ($has_abstract)
295 0 0 if ($node->isa('AbstractInterface')) { }
305 0 0 if ($node->isa('AbstractInterface')) { }
315 0 0 if ($node->isa('AbstractInterface')) { }
326 0 0 if ($node->isa('AbstractInterface')) { }
360 0 0 if (exists $$node{'inheritance'} and exists $$node{'inheritance'}{'list_interface'}) { }
363 0 0 unless ($node->isa('AbstractInterface'))
368 0 0 unless $first
372 0 0 unless $first
376 0 0 if ($node->isa('AbstractInterface')) { }
0 0 elsif ($node->isa('LocalInterface')) { }
388 0 0 if $node->isa('AbstractInterface')
404 0 0 if ($defn->isa('Operation') or $defn->isa('Attributes'))
412 0 0 if (exists $$node{'inheritance'} and exists $$node{'inheritance'}{'list_interface'}) { }
417 0 0 unless $first
418 0 0 if ($base->isa('AbstractInterface')) { }
453 0 0 if (exists $$node{'serial_uid'}) { }
465 0 0 if (exists $$node{'inheritance'} and exists $$node{'inheritance'}{'list_interface'})
507 0 0 unless $$self{'srcname'} eq $$node{'filename'}
514 0 0 if $self->can('_interface_helperXML')
515 0 0 if $self->can('_interface_stubXML')
521 0 0 unless $$self{'srcname'} eq $$node{'filename'}
527 0 0 if $self->can('_interface_helperXML')
528 0 0 if $self->can('_interface_stubXML')
534 0 0 unless $$self{'srcname'} eq $$node{'filename'}
590 0 0 if (exists $$node{'list_member'}) { }
605 0 0 if ($node->isa('AbstractValue')) { }
646 0 0 if ($node->isa('AbstractValue')) { }
648 0 0 if (exists $$node{'inheritance'} and exists $$node{'inheritance'}{'list_value'})
654 0 0 if (exists $$node{'inheritance'} and exists $$node{'inheritance'}{'list_interface'})
663 0 0 if (exists $$node{'inheritance'} and exists $$node{'inheritance'}{'list_value'})
666 0 0 unless $base->isa('RegularValue')
672 0 0 if (exists $$node{'modifier'}) { }
678 0 0 if (exists $$node{'inheritance'} and exists $$node{'inheritance'}{'list_value'})
681 0 0 unless $base->isa('AbstractValue')
685 0 0 if (exists $$node{'inheritance'} and exists $$node{'inheritance'}{'list_interface'})
694 0 0 if (exists $$node{'serial_uid'}) { }
703 0 0 $$member{'modifier'} eq 'private' ? :
707 0 0 if ($node->isa('RegularValue'))
718 0 0 unless (exists $$node{'modifier'})
721 0 0 if $super
731 0 0 if $super
745 0 0 if ($$self{'toString'})
753 0 0 if ($first) { }
768 0 0 if ($$self{'equals'})
776 0 0 if (scalar @{$$node{'list_member'};}) { }
783 0 0 if ($first) { }
827 0 0 unless $$self{'srcname'} eq $$node{'filename'}
839 0 0 if $$self{'factory'}
840 0 0 if $self->can('_value_helperXML')
858 0 0 if ($$node{'java_params'}) { }
934 0 0 if (exists $$node{'java_primitive'}) { }
947 0 0 if (exists $$node{'java_primitive'}) { }
974 0 0 if (defined $_) { }
994 0 0 if (exists $$node{'java_primitive'}) { }
1002 0 0 if (exists $$node{'java_primitive'}) { }
1019 0 0 if (exists $$node{'array_size'})
1033 0 0 if (defined $_)
1045 0 0 if ($type2->isa('StringType') || $type2->isa('WideStringType') and exists $$type2{'max'})
1053 0 0 if (exists $$node{'array_size'})
1059 0 0 if (exists $$node{'java_primitive'}) { }
1067 0 0 if (exists $$node{'java_primitive'}) { }
1082 0 0 if (exists $$node{'java_primitive'}) { }
1095 0 0 if (exists $$node{'array_size'})
1107 0 0 if (defined $_)
1118 0 0 if ($type2->isa('StringType') || $type2->isa('WideStringType') and exists $$type2{'max'})
1122 0 0 if (exists $$node{'java_primitive'}) { }
1132 0 0 if (exists $$node{'array_size'})
1159 0 0 if (exists $$node{'serial_uid'}) { }
1182 0 0 if ($$self{'toString'})
1194 0 0 if ($$self{'equals'})
1222 0 0 unless $$self{'srcname'} eq $$node{'filename'}
1225 0 0 if ($type->isa('StructType') or $type->isa('UnionType') or $type->isa('EnumType'))
1230 0 0 if (exists $$node{'java_primitive'}) { }
1234 0 0 if $self->can('_boxed_helperXML')
1246 0 0 if (exists $$type{'max'}) { }
1267 0 0 if (exists $$type{'max'}) { }
1281 0 0 if $self->can('_boxed_helperXML')
1293 0 0 unless $$self{'srcname'} eq $$node{'filename'}
1305 0 0 if $self->can('_value_helperXML')
1319 0 0 unless $$self{'srcname'} eq $$node{'filename'}
1329 0 0 if $pkg
1330 0 0 if (defined $defn and $defn->isa('BaseInterface')) { }
1333 0 0 if ($type->isa('FloatingPtType') or $type->isa('IntegerType') or $type->isa('CharType') or $type->isa('WideCharType') or $type->isa('StringType') or $type->isa('WideStringType') or $type->isa('BooleanType') or $type->isa('OctetType') or $type->isa('EnumType')) { }
1355 0 0 if ($type->isa('FloatingPtType') or $type->isa('IntegerType') or $type->isa('CharType') or $type->isa('WideCharType') or $type->isa('StringType') or $type->isa('WideStringType') or $type->isa('BooleanType') or $type->isa('OctetType') or $type->isa('EnumType')) { }
1426 0 0 if (defined $_) { }
1433 0 0 if (exists $$node{'array_size'})
1453 0 0 if (scalar @{$array;}) { }
1463 0 0 if (exists $$node{'array_size'})
1477 0 0 if (defined $_)
1489 0 0 if ($type2->isa('StringType') || $type2->isa('WideStringType') and exists $$type2{'max'})
1497 0 0 if (exists $$node{'array_size'})
1511 0 0 if (exists $$node{'array_size'})
1523 0 0 if (defined $_)
1534 0 0 if ($type2->isa('StringType') || $type2->isa('WideStringType') and exists $$type2{'max'})
1543 0 0 if (exists $$node{'array_size'})
1558 0 0 unless $$self{'srcname'} eq $$node{'filename'}
1560 0 0 if ($type->isa('StructType') or $type->isa('UnionType') or $type->isa('EnumType'))
1573 0 0 if (exists $$type{'max'}) { }
1587 0 0 if (exists $$node{'array_size'} or exists $$type{'array_size'} or scalar @array) { }
1588 0 0 if (exists $$node{'array_size'})
1609 0 0 if $self->can('_typedeclarator_helperXML')
1618 0 0 if $self->can('_typedeclarator_helperXML')
1675 0 0 unless $$self{'srcname'} eq $$node{'filename'}
1775 0 0 if (exists $$node{'serial_uid'}) { }
1800 0 0 unless $first
1812 0 0 if ($$self{'toString'})
1820 0 0 if ($first) { }
1833 0 0 if ($$self{'equals'})
1847 0 0 if ($first) { }
1874 0 0 unless $$self{'srcname'} eq $$node{'filename'}
1875 0 0 if exists $$self{'done_hash'}{$$node{'java_Name'}}
1879 0 0 if ($type->isa('StructType') or $type->isa('UnionType'))
1888 0 0 if $self->can('_struct_helperXML')
1900 0 0 if (exists $$type{'max'}) { }
1913 0 0 if (defined $_) { }
1920 0 0 if (exists $$member{'array_size'})
1925 0 0 if ($parent->isa('Value')) { }
0 0 elsif ($parent->isa('UnionType')) { }
1935 0 0 if ($parent->isa('Value')) { }
0 0 elsif ($parent->isa('UnionType')) { }
1944 0 0 if ($parent->isa('Value')) { }
1945 0 0 $$member{'modifier'} eq 'private' ? :
1960 0 0 unless ($member->isa('StateMember'))
1961 0 0 if ($parent->isa('UnionType')) { }
1972 0 0 if $parent->isa('UnionType')
1975 0 0 if (exists $$member{'array_size'})
1985 0 0 if (exists $$type{'array_size'})
1994 0 0 if (exists $$typeh{'max'}) { }
2002 0 0 if ($parent->isa('UnionType'))
2005 0 0 if (exists $$member{'array_size'})
2009 0 0 if ($parent->isa('UnionType')) { }
2027 0 0 if (defined $_)
2031 0 0 if ($parent->isa('UnionType')) { }
2043 0 0 if ($parent->isa('UnionType')) { }
2049 0 0 if ($type->isa('StringType') || $type->isa('WideStringType') and exists $$type{'max'})
2057 0 0 if (exists $$member{'array_size'})
2070 0 0 $member->isa('StateMember') ? :
2071 0 0 $parent->isa('UnionType') ? :
2076 0 0 if $parent->isa('UnionType')
2078 0 0 if (exists $$member{'array_size'})
2097 0 0 if (exists $$typeh{'max'}) { }
2106 0 0 if (defined $_)
2117 0 0 if ($type->isa('StringType') || $type->isa('WideStringType') and exists $$type{'max'})
2121 0 0 if ($parent->isa('UnionType')) { }
2131 0 0 if (exists $$member{'array_size'})
2146 0 0 $parent->isa('UnionType') ? :
2148 0 0 if $parent->isa('UnionType')
2161 0 0 unless ($$member{'type_java'}->isa('BasicType'))
2168 0 0 if ($parent->isa('UnionType')) { }
2169 0 0 if ($$member{'type_java'}->isa('StringType') or $$member{'type_java'}->isa('WideStringType')) { }
2178 0 0 if ($$member{'type_java'}->isa('StringType') or $$member{'type_java'}->isa('WideStringType')) { }
2194 0 0 unless ($$member{'type_java'}->isa('BasicType'))
2220 0 0 if ($$member{'type_java'}->isa('StringType') or $$member{'type_java'}->isa('WideStringType') or $$member{'type_java'}->isa('StructType') or $$member{'type_java'}->isa('UnionType') or $$member{'type_java'}->isa('Interface') or $$member{'type_java'}->isa('Value')) { }
2279 0 0 if ($effective_dis->isa('EnumType')) { }
2294 0 0 if ($_->isa('Default')) { }
2302 0 0 if ($effective_dis->isa('EnumType')) { }
2332 0 0 if ($effective_dis->isa('EnumType')) { }
0 0 elsif ($effective_dis->isa('BooleanType')) { }
2347 0 0 if ($_->isa('Default')) { }
2352 0 0 if ($effective_dis->isa('BooleanType')) { }
2353 0 0 $$_{'value'} eq 'TRUE' ? :
2364 0 0 if (scalar @{$$case{'list_label'};} > 1 or $flag_default) { }
2372 0 0 if (exists $$node{'need_default'})
2383 0 0 if ($effective_dis->isa('EnumType')) { }
0 0 elsif ($effective_dis->isa('BooleanType')) { }
2397 0 0 if ($_->isa('Default')) { }
2401 0 0 if ($effective_dis->isa('BooleanType')) { }
2402 0 0 $$_{'value'} eq 'TRUE' ? :
2415 0 0 if (exists $$node{'need_default'})
2436 0 0 if (exists $$node{'serial_uid'}) { }
2466 0 0 if ($_->isa('Default'))
2478 0 0 if ($flag_default) { }
2483 0 0 if $_ == $label
2485 0 0 if $find
2486 0 0 unless $first
2487 0 0 if ($effective_dis->isa('EnumType')) { }
2499 0 0 unless $first
2500 0 0 if ($effective_dis->isa('EnumType')) { }
2509 0 0 if ($cond)
2513 0 0 if (exists $$value{'java_object'}) { }
2523 0 0 if (defined $$node{'default'} and $case eq $$node{'default'}) { }
2528 0 0 if ($effective_dis->isa('EnumType')) { }
2535 0 0 if (exists $$value{'java_object'}) { }
2544 0 0 if (scalar @{$$case{'list_label'};} > 1 or $flag_default)
2548 0 0 if (defined $$node{'default'} and $case eq $$node{'default'}) { }
2553 0 0 if $_ == $label
2555 0 0 if $find
2556 0 0 unless $first
2557 0 0 if ($effective_dis->isa('EnumType')) { }
2569 0 0 unless $first
2570 0 0 if ($effective_dis->isa('EnumType')) { }
2579 0 0 if ($cond)
2584 0 0 if (exists $$value{'java_object'}) { }
2595 0 0 if (exists $$node{'need_default'})
2598 0 0 if ($effective_dis->isa('EnumType')) { }
0 0 elsif ($effective_dis->isa('BooleanType')) { }
2600 0 0 unless (exists $$node{'hash_member'}{$_})
2607 0 0 if (exists $$node{'hash_member'}{0}) { }
2617 0 0 unless (exists $$node{'hash_member'}{$v})
2629 0 0 if ($effective_dis->isa('EnumType')) { }
0 0 elsif ($effective_dis->isa('BooleanType')) { }
2642 0 0 if ($effective_dis->isa('BooleanType')) { }
2643 0 0 $$_{'value'} eq 'TRUE' ? :
2659 0 0 if ($$self{'toString'})
2663 0 0 if ($effective_dis->isa('EnumType')) { }
0 0 elsif ($effective_dis->isa('BooleanType')) { }
2679 0 0 if ($_->isa('Default')) { }
2683 0 0 if ($effective_dis->isa('BooleanType')) { }
2684 0 0 $$_{'value'} eq 'TRUE' ? :
2703 0 0 if ($$self{'equals'})
2736 0 0 unless $$self{'srcname'} eq $$node{'filename'}
2737 0 0 if exists $$self{'done_hash'}{$$node{'java_Name'}}
2741 0 0 if ($type->isa('StructType') or $type->isa('UnionType') or $type->isa('EnumType'))
2754 0 0 if $effective_dis->isa('EnumType')
2759 0 0 if $self->can('_union_helperXML')
2816 0 0 unless $first
2855 0 0 if (exists $$node{'serial_uid'}) { }
2897 0 0 if ($$self{'toString'} or $self->can('_enum_helperXML'))
2912 0 0 if ($$self{'equals'})
2937 0 0 unless $$self{'srcname'} eq $$node{'filename'}
2942 0 0 if $self->can('_enum_helperXML')
3043 0 0 if (exists $$node{'serial_uid'}) { }
3065 0 0 if (scalar @{$$node{'list_member'};})
3070 0 0 unless $first
3084 0 0 if (scalar @{$$node{'list_member'};}) { }
3103 0 0 if ($$self{'toString'})
3107 0 0 if (scalar @{$$node{'list_member'};})
3112 0 0 if ($first) { }
3127 0 0 if ($$self{'equals'} and scalar @{$$node{'list_member'};})
3141 0 0 if ($first) { }
3168 0 0 unless $$self{'srcname'} eq $$node{'filename'}
3169 0 0 if exists $$self{'done_hash'}{$$node{'java_Name'}}
3173 0 0 if ($type->isa('StructType') or $type->isa('UnionType'))
3182 0 0 if $self->can('_exception_helperXML')
3203 0 0 if (exists $$node{'modifier'}) { }
3211 0 0 if ($$_{'attr'} eq 'in') { }
0 0 elsif ($$_{'attr'} eq 'inout') { }
3215 0 0 if ($type->isa('BoxedValue') and exists $$type{'java_primitive'}) { }
3223 0 0 if (exists $$node{'list_context'})
3228 0 0 unless ($type->isa('VoidType'))
3233 0 0 if $$_{'attr'} eq 'in'
3234 0 0 if ($type->isa('BoxedValue') and exists $$type{'java_primitive'}) { }
3242 0 0 if ($type->isa('VoidType')) { }
3251 0 0 if (exists $$node{'list_raise'}) { }
3256 0 0 unless $first
3268 0 0 if ($type->isa('VoidType')) { }
3297 0 0 if exists $$node{'_set'}