Branch Coverage

lib/SMB/v2/Commands.pm
Criterion Covered Total %
branch 0 44 0.0


line true false branch
86 0 0 if ($parser->size < $MIN_MESSAGE_SIZE)
91 0 0 if ($parser->bytes(4) ne $header_stamp)
107 0 0 if ($flags & 2) { }
135 0 0 if ($command_name) { }
138 0 0 unless ($INC{$command_filename} or $main::_INC{$command_filename})
140 0 0 unless (eval { do { require $command_filename; 1 } })
148 0 0 unless $command->is_success or $command->is('SessionSetup')
150 0 0 unless $command = $command->parse($parser)
156 0 0 if $offset
177 0 0 if ($is_response) { }
182 0 0 if ($is_chained and not $is_first) { }
189 0 0 if (not $is_chained or $is_first)
200 0 0 $is_response ? :
208 0 0 if ($flags & 2) { }
218 0 0 $command->is_success ? :
222 0 0 unless $is_error_packet
224 0 0 if $is_error_packet
227 0 0 if $command->is('Negotiate') and not $is_response
230 0 0 if $size > $size0 and not $payload_allowed and not $is_error_packet
232 0 0 if $size0 > $size
235 0 0 if ($is_chained and not $is_last)
243 0 0 if (not $is_chained or $is_last)