Branch Coverage

lib/SMB/Client.pm
Criterion Covered Total %
branch 0 122 0.0


line true false branch
40 0 0 unless $verbose
49 0 0 if $share_uri
60 0 0 $share_uri =~ m([/\\]) ? :
63 0 0 unless $addr
65 0 0 unless $addr =~ /:/
67 0 0 unless my $socket = 'IO::Socket::INET'->new('PeerAddr', $addr, 'Proto', 'tcp')
70 0 0 if ($options{'just_socket'}) { }
98 0 0 unless (%$connections)
104 0 0 unless ($connection)
117 0 0 if $_->tree == $tree
134 0 0 $connection->tree ? :
149 0 0 $response ? :
0 0 if not $no_warn and !$response || $response->is_error
159 0 0 if $connection->dialect
162 0 0 if ($response and $response->is_success)
163 0 0 unless ($connection->auth->process_spnego($response->security_buffer))
177 0 0 if $connection->session_id
184 0 0 unless $response and $response->is_success || $more_processing and $connection->auth->process_spnego($response->security_buffer)
188 0 0 if $response->is_success
189 0 0 unless $more_processing
197 0 0 if ($response and $response->is_success and $connection->auth->process_spnego($response->security_buffer))
198 0 0 unless $connection->session_id == $response->header->uid
221 0 0 unless $$connection{$_} or $options{$_}
225 0 0 unless $self->check_session($connection)
229 0 0 if ($response and $response->is_success)
248 0 0 if $path =~ m[^[^/]]
257 0 0 if ($to_dos)
269 0 0 $is_dos ? :
271 0 0 $path =~ /.*\Q$delim\E(.*)/ ? :
281 0 0 if ($command eq 'chdir') { }
0 0 elsif ($command eq 'find') { }
0 0 elsif ($command eq 'dnload') { }
0 0 elsif ($command eq 'upload') { }
0 0 elsif ($command eq 'remove') { }
287 0 0 $pattern =~ /^(.*)\\(.*)/ ? :
288 0 0 if $2
294 0 0 unless $response and $response->is_success
300 0 0 $response && $response->is_success ? :
305 0 0 wantarray ? :
308 0 0 if $filename eq ''
315 0 0 unless $response and $response->is_success
323 0 0 $remaining >= 65536 ? :
331 0 0 unless $response and $response->is_success
333 0 0 if $read != $length
342 0 0 unless open DST, '>', $dst_filename
344 0 0 unless print DST $content
346 0 0 unless close DST
353 0 0 if $filename eq ''
358 0 0 unless open SRC, '<', $filename
362 0 0 unless close SRC
371 0 0 unless $response and $response->is_success
376 0 0 $remaining >= 65536 ? :
384 0 0 unless $response and $response->is_success
386 0 0 if $written != $length
397 0 0 if $filename eq ''
401 0 0 $is_dir ? :
410 0 0 unless $response and $response->is_success
415 0 0 unless $response and $response->is_success
437 0 0 unless $request
440 0 0 unless ($response)
445 0 0 unless ($response->is_response_to($request))