Condition Coverage

blib/lib/Crypt/SecretBuffer.pm
Criterion Covered Total %
condition 7 54 12.9


and 3 conditions

line !l l&&!r l&&r condition
59 0 0 22 @_ and ref $_[0]
0 0 22 @_ and ref $_[0] and ref $_[0] eq 'GLOB' || ref($_[0])->can('getc')
86 0 22 0 not defined $prompt_fh and defined $prompt || defined $char_mask
92 0 0 0 -t $input_fh and defined $fd && $fd == 0 || \*STDIN == $input_fh || $^O eq 'MSWin32'
127 0 0 0 $prompt_fh->print($prompt) and $prompt_fh->flush
138 0 0 0 $char_class and $self->index($char_class, $end_pos) == -1
0 0 0 $char_max and $self->length - $start_len > $char_max
153 0 0 0 $prompt_fh->print("\b" x CORE::length($char_mask) . " " x CORE::length($char_mask) . "\b" x CORE::length($char_mask)) and $prompt_fh->flush
178 0 0 0 $prompt_fh->print($char_mask) and $prompt_fh->flush
182 0 0 0 $char_count and $self->length - $start_len == $char_count
188 22 0 0 $char_max and $self->length - $start_len > $char_max
195 0 0 0 $prompt_fh->print("\n") and $prompt_fh->flush

or 3 conditions

line l !l&&r !l&&!r condition
59 22 0 0 ref $_[0] eq 'GLOB' || ref($_[0])->can('getc')
76 0 0 0 open $prompt_fh, ">", "CONOUT\$" or croak('open(CONOUT$): ' . $!)
86 0 0 22 defined $prompt || defined $char_mask
92 0 0 0 defined $fd && $fd == 0 || \*STDIN == $input_fh || $^O eq 'MSWin32'
0 0 0 -S $input_fh or -t $input_fh
118 0 0 22 defined $char_mask || defined $char_count || defined $char_class