blib/lib/Google/ProtocolBuffers.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 43 | 53.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
97 | 0 | 0 | 1308 | @type_idents and @field_idents |
140 | 1654 | 56 | 371 | $default_value and ref $default_value |
266 | 0 | 0 | 2307 | $name and $name =~ /^\[?[a-z_][\w\.]*\]?$/i |
303 | 91 | 235 | 1 | defined $oneofs && %$oneofs |
359 | 0 | 0 | 222 | $name and $name =~ /^[a-z_]\w*$/i |
464 | 0 | 3 | 0 | $self->can('_pb_oneofs') and exists $self->_pb_oneofs->{$oneof} |
524 | 15 | 2 | 0 | $self->can('_pb_oneofs_rev') and exists $self->_pb_oneofs_rev->{$key} |
line | l | !l | condition |
---|---|---|---|
19 | 10 | 0 | shift() || {} |
27 | 8 | 4 | shift() || {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
291 | 1680 | 45 | 581 | $label == 1 or $label == 2 |
1725 | 581 | 0 | $label == 1 or $label == 2 or $label == 3 | |
408 | 1 | 0 | 0 | ref $self || $self |
427 | 1 | 0 | 0 | ref $self || $self |
437 | 0 | 1 | 0 | ref $proto || $proto |
497 | 0 | 0 | 0 | $fields ||= $self->_pb_fields_by_name |