Branch Coverage

blib/lib/Google/ProtocolBuffers/CodeGen.pm
Criterion Covered Total %
branch 17 20 85.0


line true false branch
38 55 24 if ($v =~ /^-?\d+$/) { }
4 20 elsif ($v =~ /[-+]?\d*\.\d+([Ee][\+-]?\d+)?|[-+]?\d+[Ee][\+-]?\d+/i) { }
40 3 52 if ($v > 2147483647 or $v < -2147483648) { }
85 6 0 $self->_pb_complex_type_kind == 2 ? :
28 6 $self->_pb_complex_type_kind == 1 ? :
95 0 226 unless $labels{$label}
98 176 50 if ($primitive_types{$type}) { }
104 58 168 defined $default_value ? :
116 0 34 if ($self->can('_pb_oneofs'))
130 34 34 if ($opts->{$opt_name})