Branch Coverage

blib/lib/UI/Dialog/Backend/Whiptail.pm
Criterion Covered Total %
branch 52 116 44.8


line true false branch
40 9 0 @_ ? :
0 9 ref $_[0] eq 'HASH' ? :
48 0 9 if ($CFG_PATH) { }
9 0 elsif ($ENV{'PATH'}) { }
49 0 0 if (ref $CFG_PATH eq 'ARRAY') { }
0 0 elsif ($CFG_PATH =~ /:/) { }
0 0 elsif (-d $CFG_PATH) { }
84 0 9 unless (-x $self->{'_opts'}{'bin'})
90 3 6 if exists $cfg->{'test_mode'}
103 0 0 unless (not ref $CODE)
126 0 11 if ($self->{'_opts'}{'force-no-separate-output'}) { }
143 0 1 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
144 0 1 if ($_[0] and $_[0] eq 'caller')
158 0 1 if ($rv and $rv >= 1) { }
169 1 0 $rv == 0 ? :
177 1 1 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
178 1 1 if ($_[0] and $_[0] eq 'caller')
185 1 1 if ($args->{'password'}) { }
199 2 0 $rv == 0 ? :
212 1 3 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
213 1 3 if ($_[0] and $_[0] eq 'caller')
221 1 3 if ($args->{'infobox'}) { }
234 0 4 if exists $args->{'wait'} and $args->{'wait'}
238 1 3 if $args->{'infobox'}
240 1 3 if ($args->{'infobox'})
243 0 1 if ($args->{'timeout'}) { }
0 1 elsif ($args->{'wait'}) { }
244 0 0 $args->{'timeout'} ? :
247 0 0 $args->{'wait'} ? :
250 0 1 if $sec
253 4 0 $rv == 0 ? :
265 0 1 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
266 0 1 if ($_[0] and $_[0] eq 'caller')
282 1 0 $rv == 0 ? :
290 0 1 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
291 0 1 if ($_[0] and $_[0] eq 'caller')
297 0 1 if exists $args->{'menuheight'}
311 1 0 $rv == 0 ? :
317 1 1 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
318 1 1 if ($_[0] and $_[0] eq 'caller')
324 0 2 if exists $args->{'menuheight'}
330 1 1 if ($args->{'radiolist'}) { }
341 1 1 if ($args->{'radiolist'})
343 1 0 $rv == 0 ? :
346 1 0 $rv == 0 ? :
358 0 0 $caller =~ /^UI\:\:Dialog\:\:Backend\:\:/ ? :
359 0 0 if ($_[0] and $_[0] eq 'caller')
367 0 0 if (defined $self->{'_GAUGE'}{'FH'})
391 0 0 if ($rv and $rv >= 1) { }
403 0 0 unless defined $self->{'_GAUGE'}{'FH'}
409 0 0 defined $self->{'_GAUGE'}{'FH'} ? :
415 0 0 unless defined $self->{'_GAUGE'}{'FH'}
421 0 0 defined $self->{'_GAUGE'}{'FH'} ? :
428 0 0 unless $self->{'_GAUGE'}{'FH'}
433 0 0 defined $self->{'_GAUGE'}{'FH'} ? :
440 0 0 unless $self->{'_GAUGE'}{'FH'}
444 0 0 defined $self->{'_GAUGE'}{'FH'} ? :
449 0 0 unless $self->{'_GAUGE'}{'FH'}