Branch Coverage

lib/SMB/DCERPC.pm
Criterion Covered Total %
branch 51 86 59.3


line true false branch
61 0 2 unless defined $options{'name'}
87 0 6 unless $version_major eq 5 and $version_minor eq 0
91 0 6 unless $packet_type eq $given_packet_type
96 0 6 unless $packet_flags eq 3
100 0 6 unless $data_representation eq 16
105 0 6 unless $auth_len eq 0
111 2 4 if ($packet_type == 11 or $packet_type == 12) { }
145 2 4 if ($packet_type == 11 or $packet_type == 12) { }
178 0 0 if (caller 1)[3] =~ /::generate_/
187 0 1 unless $self->state == 0
190 0 1 unless $self->parse_common($payload, 11)
200 0 3 unless $context_id eq $_
203 0 3 unless $num eq 1
223 0 1 unless $self->state == 0
233 1 1 $_ == 1 ? :
1 2 $_ == 0 ? :
1 2 $_ == 0 ? :
252 0 1 unless $self->state == 1
255 0 1 unless $self->parse_common($payload, 12)
285 0 1 unless $self->state == 1
301 1 1 $self->contexts->[$_] eq ",\034\267l\cR\230\@E\cC\000\000\000\000\000\000\000" ? :
1 2 $self->contexts->[$_] eq "3\cEqq\272\2767I\203\cY\265\333\357\234\3146" ? :
325 0 2 unless $self->state == 2 or $self->state == 4
328 0 2 unless $self->parse_common($payload, 0)
334 2 0 if ($opnum == $operations{'NetShareGetInfo'}) { }
347 0 2 unless $level == 1
368 0 2 unless $self->state == 2 or $self->state == 4
372 0 2 unless defined $opnum
381 2 0 if ($opnum == $operations{'NetShareGetInfo'}) { }
420 0 2 unless $self->state == 3
423 0 2 unless $self->parse_common($payload, 2)
429 2 0 if ($opnum == $operations{'NetShareGetInfo'}) { }
431 0 2 unless $level == 1
470 0 2 unless $self->state == 3
477 2 0 if ($opnum == $operations{'NetShareGetInfo'}) { }
519 0 2 if $state == 0
521 0 2 if $state == 1
523 1 1 if $state == 2 or $state == 4
525 1 0 if $state == 3
536 0 2 if $state == 0
538 0 2 if $state == 1
540 1 1 if $state == 2 or $state == 4
542 1 0 if $state == 3