line |
true |
false |
branch |
56
|
292 |
48 |
unless $$desc{'kind'} eq 'enum' |
71
|
48 |
292 |
if ($kind eq 'enum') { } |
|
57 |
235 |
elsif ($kind eq 'group') { } |
|
235 |
0 |
elsif ($kind eq 'message') { } |
89
|
6 |
652 |
if ($$opts{'simple_extensions'}) { } |
90
|
5 |
1 |
$field_name =~ /\.(\w+)$/ ? : |
96
|
652 |
656 |
if $type_idents[0] ne $field_idents[0] |
100
|
0 |
652 |
unless @field_idents |
116
|
461 |
1617 |
unless ($type =~ /^\d+$/) |
127
|
371 |
1707 |
if ($default_value and ref $default_value) { } |
|
55 |
1652 |
elsif ($default_value) { } |
129
|
0 |
371 |
unless ref $default_value eq 'HASH' |
146
|
235 |
57 |
if ($kind eq 'message') { } |
|
57 |
0 |
elsif ($kind eq 'group') { } |
155
|
3 |
16 |
if ($$opts{'generate_code'}) |
158
|
3 |
0 |
if (not ref $$opts{'generate_code'}) { } |
159
|
0 |
3 |
unless open $fh, ">$$opts{'generate_code'}" |
165
|
1 |
2 |
$$opts{'package_name'} ? : |
168
|
1 |
2 |
$$source{'file'} ? : |
235
|
0 |
326 |
unless $class_name =~ /^[a-z_]\w*(?:::[a-z_]\w*)*$/i |
243
|
0 |
2304 |
unless $name |
248
|
0 |
2304 |
unless $name and $name =~ /^\[?[a-z_][\w\.]*\]?$/i |
250
|
1 |
2303 |
if ($field_names{$name}++) |
257
|
0 |
2303 |
unless $field_number > 0 |
258
|
0 |
2303 |
if ($field_numbers{$field_number}++) |
265
|
0 |
2303 |
unless $type_name |
266
|
1792 |
511 |
if ($type_name =~ /^\d+$/) { } |
269
|
0 |
511 |
unless $type_name =~ /^[a-z_]\w*(?:::[a-z_]\w*)*$/i |
273
|
0 |
625 |
unless $label == 1 or $label == 2 or $label == 3 |
292
|
163 |
162 |
if ($$opts{'create_accessors'}) |
299
|
0 |
163 |
if ($$opts{'follow_best_practice'}) |
319
|
0 |
53 |
unless $class_name =~ /^[a-z_]\w*(?:::[a-z_]\w*)*$/i |
324
|
0 |
219 |
unless $name and $name =~ /^[a-z_]\w*$/i |
326
|
0 |
219 |
if ($names{$name}++) |
359
|
14 |
0 |
ref $self ? : |
366
|
13 |
1 |
if ($field) { } |
367
|
10 |
3 |
exists $$data{$key} ? : |
376
|
5 |
0 |
ref $self ? : |
383
|
4 |
1 |
if ($self->_pb_fields_by_name->{$key}) { } |
399
|
54 |
0 |
if (@_ == 1) { } |
|
0 |
0 |
elsif (@_ > 1) { } |
403
|
23 |
31 |
if defined $$self{$_[0]} |
410
|
0 |
0 |
if (defined $$self{$key}) { } |
427
|
15 |
0 |
if (@_ == 1) { } |
|
0 |
0 |
elsif (@_ > 1) { } |
428
|
14 |
1 |
if (defined $_[0]) { } |
445
|
1 |
855 |
if ($$opts{'no_camel_case'}) { } |