Condition Coverage

lib/Math/String/Charset.pm
Criterion Covered Total %
condition 73 109 66.9


and 2 conditions

line l !l condition
864 0 0 $str->{'_cache'} = undef and return

and 3 conditions

line !l l&&!r l&&r condition
117 204 0 0 $self->{'_type'} == 2 and $self->{'_order'} == 1
128 69 163 0 $die_on_error and $self->{'_error'} ne ''
170 247 0 1 exists $value->{'charlen'} and exists $value->{'sep'}
179 227 19 1 exists $value->{'sets'} and exists $value->{'bi'}
194 228 17 1 exists $value->{'bi'} and $self->{'_type'} != 0
197 226 16 3 exists $value->{'sets'} and $self->{'_type'} == 0
204 219 16 1 $self->{'_type'} == 1 and $self->{'_order'} != 1
222 209 21 1 defined $self->{'_sep'} and $self->{'_sep'} eq ''
284 196 0 0 $self->{'_cnum'}->is_zero and $self->{'_minlen'} > 0
628 59 0 39 $x <= $j and $self->{'_minlen'} <= $ONE
748 0 8 117 defined $char and exists $self->{'_map'}{$char}
775 0 18 0 defined $self->{'_maxlen'} and $count > $self->{'_maxlen'}
790 0 18 0 defined $self->{'_maxlen'} and $count > $self->{'_maxlen'}
887 0 0 73 defined $char and exists $self->{'_map'}{$char}

or 2 conditions

line l !l condition
60 7 0 'Math::BigInt'->config->{'lib'} || 'Math::BigInt::Calc'
68 250 0 ref $class || $class || 'Math::String::Charset'
400 3 0 shift() || ''
451 56 0 shift() || 1
488 4 0 shift() || 1
500 4 0 shift() || 1
677 103 11 $self->{'_clen'} || 0
737 18 24 shift() || 0
772 14 4 shift() || 0
778 6 8 $self->{'_sep'} || ''
787 14 4 shift() || 0
793 6 8 $self->{'_sep'} || ''
941 0 0 $arg->{'order'} || $arg->{'depth'} || 1
942 4 0 $arg->{'words'} || []
944 0 4 $arg->{'charlen'} || 1
946 0 4 $arg->{'hist'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
200 3 3 236 $self->{'_type'} < 0 or $self->{'_type'} > 2
218 0 3 231 $self->{'_order'} < 1 or $self->{'_order'} > 2
474 0 0 38 $len < $self->{'_minlen'} or $len > $self->{'_maxlen'}
551 1 1 123 scalar @chars < $self->{'_minlen'} or scalar @chars > $self->{'_maxlen'}
640 1 0 59 $digits < $self->{'_minlen'} or $digits > $self->{'_maxlen'}
757 1 0 81 $x->is_zero or $x->is_nan
1 0 81 $x->is_zero or $x->is_nan or $x->is_inf
838 0 8 77 not defined $char or $char >= @{$self->{'_start'};}
8 2 75 not defined $char or $char >= @{$self->{'_start'};} or $char < 0
891 8 7 58 $char < 0 or $char >= @{$self->{'_start'};}
948 0 0 4 $depth < 1 or $depth > 2