Branch Coverage

blib/lib/Fax/Hylafax/Client.pm
Criterion Covered Total %
branch 2 158 1.2


line true false branch
35 0 0 if $_[0] eq 'Fax::Hylafax::Client'
36 0 0 scalar @_ == 1 ? :
51 0 0 unless $param{'jobid'}
55 0 0 unless $client->login($param{'user'}, $param{'password'})
59 0 0 unless $client->quot('job', $param{'jobid'})
62 0 0 unless $client->quot('jparm state')
76 0 0 if $_[0] eq 'Fax::Hylafax::Client'
77 0 0 scalar @_ == 1 ? :
91 0 0 unless $param{'jobid'}
95 0 0 unless $client->login($param{'user'}, $param{'password'})
99 0 0 unless $client->quot('jkill', $param{'jobid'})
101 0 0 $client->message =~ /failed/i || $client->message =~ /cannot/i ? :
113 0 0 if $_[0] eq 'Fax::Hylafax::Client'
138 0 0 unless $client->login($param{'user'}, $param{'password'})
142 0 0 if ($param{'info'})
161 0 0 if ($param{'files'})
163 0 0 unless $client->quot('filefmt', $param{'filefmt'})
171 0 0 if $content
175 0 0 if ($param{'queue'})
177 0 0 unless $client->quot('jobfmt', $param{'jobfmt'})
185 0 0 if $content
189 0 0 if ($param{'done'})
191 0 0 unless $client->quot('jobfmt', $param{'jobfmt'})
199 0 0 if $content
203 0 0 if ($param{'received'})
205 0 0 unless $client->quot('rcvfmt', $param{'rcvfmt'})
213 0 0 if $content
227 1 0 if $_[0] eq 'Fax::Hylafax::Client'
258 1 0 unless $param{'dialstring'}
259 0 0 unless $param{'docfile'} or $param{'poll'}
260 0 0 if $param{'coverfile'} and not -e $param{'coverfile'}
262 0 0 if (ref \$param{'docfile'} eq 'SCALAR') { }
0 0 elsif (ref $param{'docfile'} eq 'ARRAY') { }
277 0 0 unless -e $docfile
284 0 0 unless $client->login($param{'user'}, $param{'password'})
286 0 0 unless $client->binary
292 0 0 if ($param{'coverfile'})
297 0 0 unless $client->put($param{'coverfile'}, $remote)
308 0 0 unless $client->put($docfile, $remote)
314 0 0 unless $client->quot('jnew')
317 0 0 if $1
320 0 0 unless $client->quot('jparm fromuser', $param{'user'})
323 0 0 unless $client->quot('jparm lasttime', $param{'lasttime'})
326 0 0 unless $client->quot('jparm maxdials', $param{'maxdials'})
329 0 0 unless $client->quot('jparm maxtries', $param{'maxtries'})
332 0 0 unless $client->quot('jparm schedpri', $param{'schedpri'})
335 0 0 unless $client->quot('jparm dialstring', $param{'dialstring'})
338 0 0 unless $client->quot('jparm sendtime', $param{'sendtime'})
341 0 0 unless $client->quot('jparm notifyaddr', $param{'notifyaddr'})
344 0 0 unless $client->quot('jparm vres', $param{'vres'})
347 0 0 unless $client->quot('jparm pagewidth', $param{'pagewidth'})
350 0 0 unless $client->quot('jparm pagelength', $param{'pagelength'})
353 0 0 unless $client->quot('jparm notify', $param{'notify'})
356 0 0 unless $client->quot('jparm pagechop', 'default')
359 0 0 unless $client->quot('jparm chopthreshold', $param{'chopthreshold'})
364 0 0 if ($param{'coverfile'} and $docfile eq $tempfiles[0]) { }
366 0 0 unless $client->quot('jparm cover', $docfile)
370 0 0 unless $client->quot('jparm document', $docfile)
376 0 0 if (defined $param{'poll'})
379 0 0 unless $client->quot('jparm poll', $selector || '', $passwd || '')
383 0 0 unless $client->quot('jsubm')
385 0 0 $client->message =~ /failed/i || $client->message =~ /failed/i ? :
397 0 0 if $_[0] eq 'Fax::Hylafax::Client'
422 0 0 unless $param{'pin'}
426 0 0 unless $client->quot('logi', $param{'user'}, $param{'password'})
430 0 0 unless $client->quot('site help', 'notify')
433 0 0 unless $client->quot('leve', $param{'level'})
436 0 0 unless $client->quot('site fromuser', $param{'user'})
439 0 0 unless $client->quot('site maxdials', $param{'maxdials'})
442 0 0 unless $client->quot('site maxtries', $param{'maxtries'})
445 0 0 unless $client->quot('site mailaddr', $param{'notifyaddr'})
448 0 0 unless $client->quot('site notify', $param{'notify'})
451 0 0 unless $client->quot('site jqueue', 'yes')
454 0 0 unless $client->quot('page', $param{'pin'})
457 0 0 if $1
460 0 0 if ($param{'message'})
462 0 0 unless $client->quot('mess', $param{'message'})
466 0 0 unless $client->quot('send')
468 0 0 $client->message =~ /success/i ? :