Branch Coverage

blib/lib/Filesys/SmbClientParser.pm
Criterion Covered Total %
branch 12 340 3.5


line true false branch
57 0 26 if (-x "$p/smbclient")
67 2 1 if (not $pat && -x $pat) { }
71 2 0 unless -x $$self{'SMBLIENT'}
73 2 0 unless -x $$self{'SMBLIENT'}
75 2 0 unless -x $$self{'SMBLIENT'}
80 0 1 if $ref{'host'}
81 0 1 if $ref{'user'}
82 0 1 if $ref{'share'}
83 0 1 if $ref{'password'}
84 0 1 if $ref{'workgroup'}
85 0 1 if $ref{'ipadress'}
96 0 0 if ($_[1])
97 0 0 if ($_[1])
98 0 0 if ($_[1])
99 0 0 if ($_[1])
100 0 0 if ($_[1])
101 0 0 if ($_[1])
103 0 0 if ($_[1])
105 0 0 if ($_[1])
113 0 0 if $deb =~ /^(\d+)$/
122 0 0 if $$self{'DEBUG'}
123 0 0 if ($auth and -r $auth)
124 0 0 unless open AUTH, $auth
127 0 0 if ($_ =~ /^(\w+)\s*=\s*(.+)\s*$/)
129 0 0 if ($key =~ /^password$/i) { }
0 0 elsif ($key =~ /^username$/i) { }
146 0 0 unless ($host)
149 0 0 unless $self->SmbOption($commande, undef, undef, undef, $user, $pass, $wg, $ip)
167 0 0 if ($#out >= 0)
173 0 0 if ($line =~ /^\s+([\S ]*\S)\s+(Disk)\s+([\S ]*)/)
201 0 0 if ($#out >= 0)
207 0 0 if ($line =~ /^\t([\S ]*\S) {5,}(\S|.*)$/)
232 0 0 if ($#out >= 0)
238 0 0 if ($line =~ /^\t([\S ]*\S) {2,}(\S[\S ]*)$/)
267 0 0 if ($dir) { }
270 0 0 if ($dir ne '..') { }
272 0 0 unless $self->SmbScript($commande, undef, @_)
273 0 0 if ($dir =~ m[^/]) { }
0 0 elsif ($dir =~ /^..$/) { }
0 0 elsif ($$self{'DIR'} =~ m[/$]) { }
275 0 0 if ($$self{'DIR'} =~ m[(.*/)(.+?)$])
290 0 0 unless $dir
292 0 0 unless $self->SmbScript($cmd, undef, @_)
295 0 0 if ($line =~ /^ ([\S ]*\S|[\.]+) {5,}([HDRSA]+) +([0-9]+) (\S[\S ]+\S)$/g) { }
0 0 elsif ($line =~ /^ ([\S ]*\S|[\.]+) {6,}([0-9]+) (\S[\S ]+\S)$/) { }
301 0 0 if ($$rec{'attr'} =~ /D/) { }
336 0 0 if $target
348 0 0 ref $file eq 'ARRAY' ? :
349 0 0 $recurse ? :
376 0 0 ref $file eq 'ARRAY' ? :
377 0 0 $recurse ? :
423 0 0 if ($self->SmbScript($command, @_))
428 0 0 if ($_ =~ /^\s*Current directory is \\\\[^\\]*(\\.*)$/)
443 0 0 if (not $blk =~ /\D/ and $blk > 0) { }
0 0 elsif ($blk =~ /^([kbsmg])/i) { }
447 0 0 if $blk =~ /b/i
448 0 0 if $blk =~ /k/i
449 0 0 if $blk =~ /s/i
450 0 0 if $blk =~ /m/i
451 0 0 if $blk =~ /g/i
457 0 0 if $dir
458 0 0 unless $dir
461 0 0 unless $self->SmbScript($cmd, undef, @_)
465 0 0 if ($line =~ /^\s*(\d+)\D+(\d+)\D+(\d+)\D+$/)
466 0 0 defined $2 ? :
471 0 0 if ($line =~ /^\D+:\s+(\d+)\s*$/)
476 0 0 wantarray ? :
502 0 0 unless ($user)
503 0 0 unless ($host)
504 0 0 unless ($share)
505 0 0 unless ($pass)
506 0 0 unless ($wg)
507 0 0 unless ($ip)
508 0 0 unless ($dir)
509 0 0 $$self{'DEBUG'} ? :
510 0 0 $wg ? :
511 0 0 $ip ? :
512 0 0 $dir ? :
514 0 0 if ($user and $pass) { }
0 0 elsif ($user and not $pass) { }
519 0 0 if ($host)
520 0 0 if ($share)
557 0 0 if $$self{'DEBUG'} > 0
563 0 0 if ($args =~ /^([^;]*)$/) { }
0 0 elsif ($smbscript) { }
566 0 0 if ($args =~ /^([^;]* -c '[^']*'[^;]*)$/) { }
577 0 0 unless $var
578 0 0 if ($var =~ /ERRnoaccess/) { }
0 0 elsif ($var =~ /ERRbadfunc/) { }
0 0 elsif ($var =~ /ERRbadfile/) { }
0 0 elsif ($var =~ /ERRbadpath/) { }
0 0 elsif ($var =~ /ERRnofids/) { }
0 0 elsif ($var =~ /ERRnoaccess/) { }
0 0 elsif ($var =~ /ERRbadfid/) { }
0 0 elsif ($var =~ /ERRbadmcb/) { }
0 0 elsif ($var =~ /ERRnomem/) { }
0 0 elsif ($var =~ /ERRbadmem/) { }
0 0 elsif ($var =~ /ERRbadenv/) { }
0 0 elsif ($var =~ /ERRbadformat/) { }
0 0 elsif ($var =~ /ERRbadaccess/) { }
0 0 elsif ($var =~ /ERRbaddata/) { }
0 0 elsif ($var =~ /ERRbaddrive/) { }
0 0 elsif ($var =~ /ERRremcd/) { }
0 0 elsif ($var =~ /ERRdiffdevice/) { }
0 0 elsif ($var =~ /ERRnofiles/) { }
0 0 elsif ($var =~ /ERRbadshare/) { }
0 0 elsif ($var =~ /ERRlock/) { }
0 0 elsif ($var =~ /ERRunsup/) { }
0 0 elsif ($var =~ /ERRnosuchshare/) { }
0 0 elsif ($var =~ /ERRfilexists/) { }
0 0 elsif ($var =~ /ERRbadpipe/) { }
0 0 elsif ($var =~ /ERRpipebusy/) { }
0 0 elsif ($var =~ /ERRpipeclosing/) { }
0 0 elsif ($var =~ /ERRnotconnected/) { }
0 0 elsif ($var =~ /ERRmoredata/) { }
0 0 elsif ($var =~ /ERRinvgroup/) { }
0 0 elsif ($var =~ /ERRerror/) { }
0 0 elsif ($var =~ /ERRbadpw/) { }
0 0 elsif ($var =~ /ERRbadtype/) { }
0 0 elsif ($var =~ /ERRaccess/) { }
0 0 elsif ($var =~ /ERRinvnid/) { }
0 0 elsif ($var =~ /ERRinvnetname/) { }
0 0 elsif ($var =~ /ERRinvdevice/) { }
0 0 elsif ($var =~ /ERRqfull/) { }
0 0 elsif ($var =~ /ERRqtoobig/) { }
0 0 elsif ($var =~ /ERRqeof/) { }
0 0 elsif ($var =~ /ERRinvpfid/) { }
0 0 elsif ($var =~ /ERRsmbcmd/) { }
0 0 elsif ($var =~ /ERRsrverror/) { }
0 0 elsif ($var =~ /ERRfilespecs/) { }
0 0 elsif ($var =~ /ERRreserved/) { }
0 0 elsif ($var =~ /ERRbadpermits/) { }
0 0 elsif ($var =~ /ERRreserved/) { }
0 0 elsif ($var =~ /ERRsetattrmode/) { }
0 0 elsif ($var =~ /ERRpaused/) { }
0 0 elsif ($var =~ /ERRmsgoff/) { }
0 0 elsif ($var =~ /ERRnoroom/) { }
0 0 elsif ($var =~ /ERRrmuns/) { }
0 0 elsif ($var =~ /ERRtimeout/) { }
0 0 elsif ($var =~ /ERRnoresource/) { }
0 0 elsif ($var =~ /ERRtoomanyuids/) { }
0 0 elsif ($var =~ /ERRbaduid/) { }
0 0 elsif ($var =~ /ERRusempx/) { }
0 0 elsif ($var =~ /ERRusestd/) { }
0 0 elsif ($var =~ /ERRcontmpx/) { }
0 0 elsif ($var =~ /ERRreserved/) { }
0 0 elsif ($var =~ /ERRreserved/) { }
0 0 elsif ($var =~ /ERRnosupport/) { }
0 0 elsif ($var =~ /ERRnowrite/) { }
0 0 elsif ($var =~ /ERRbadunit/) { }
0 0 elsif ($var =~ /ERRnotready/) { }
0 0 elsif ($var =~ /ERRbadcmd/) { }
0 0 elsif ($var =~ /ERRdata/) { }
0 0 elsif ($var =~ /ERRbadreq/) { }
0 0 elsif ($var =~ /ERRseek/) { }
0 0 elsif ($var =~ /ERRbadmedia/) { }
0 0 elsif ($var =~ /ERRbadsector/) { }
0 0 elsif ($var =~ /ERRnopaper/) { }
0 0 elsif ($var =~ /ERRwrite/) { }
0 0 elsif ($var =~ /ERRread/) { }
0 0 elsif ($var =~ /ERRgeneral/) { }
0 0 elsif ($var =~ /ERRbadshare/) { }
0 0 elsif ($var =~ /ERRlock/) { }
0 0 elsif ($var =~ /ERRwrongdisk/) { }
0 0 elsif ($var =~ /ERRFCBUnavail/) { }
0 0 elsif ($var =~ /ERRsharebufexc/) { }
0 0 elsif ($var =~ /ERRDOS - 183 renaming files/) { }
0 0 elsif ($var =~ /(NT_STATUS_[^ \n]*)/ and $1 ne 'NT_STATUS_OK') { }
744 0 0 if $er
745 0 0 defined $er ? :