Condition Coverage

lib/Math/String/Charset.pm
Criterion Covered Total %
condition 72 111 64.8


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
114 204 0 0 $self->{'_type'} == 2 and $self->{'_order'} == 1
125 69 163 0 $Math::String::Charset::die_on_error and $self->{'_error'} ne ''
167 247 1 0 exists $value->{'charlen'} and exists $value->{'sep'}
176 227 20 0 exists $value->{'sets'} and exists $value->{'bi'}
191 228 17 1 exists $value->{'bi'} and $self->{'_type'} != 0
194 226 16 3 exists $value->{'sets'} and $self->{'_type'} == 0
201 219 16 1 $self->{'_type'} == 1 and $self->{'_order'} != 1
219 209 21 1 defined $self->{'_sep'} and $self->{'_sep'} eq ''
281 196 0 0 $self->{'_cnum'}->is_zero and $self->{'_minlen'} > 0
625 59 0 39 $x <= $j and $self->{'_minlen'} <= $ONE
745 0 125 0 defined $char and exists $self->{'_map'}{$char}
772 0 18 0 defined $self->{'_maxlen'} and $count > $self->{'_maxlen'}
787 0 18 0 defined $self->{'_maxlen'} and $count > $self->{'_maxlen'}
884 0 73 0 defined $char and exists $self->{'_map'}{$char}

or 2 conditions

line l !l condition
57 6 0 'Math::BigInt'->config->{'lib'} || 'Math::BigInt::Calc'
65 250 0 ref $class || $class || 'Math::String::Charset'
397 3 0 shift() || ''
448 56 0 shift() || 1
485 4 0 shift() || 1
497 4 0 shift() || 1
674 103 11 $self->{'_clen'} || 0
734 18 24 shift() || 0
769 14 4 shift() || 0
775 6 8 $self->{'_sep'} || ''
784 14 4 shift() || 0
790 6 8 $self->{'_sep'} || ''
938 0 0 $arg->{'order'} || $arg->{'depth'} || 1
939 4 0 $arg->{'words'} || []
941 0 4 $arg->{'charlen'} || 1
942 0 4 $arg->{'cut'} || 0
943 0 4 $arg->{'hist'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
197 3 3 236 $self->{'_type'} < 0 or $self->{'_type'} > 2
215 0 3 231 $self->{'_order'} < 1 or $self->{'_order'} > 2
471 0 0 38 $len < $self->{'_minlen'} or $len > $self->{'_maxlen'}
548 1 1 123 scalar @chars < $self->{'_minlen'} or scalar @chars > $self->{'_maxlen'}
637 1 0 59 $digits < $self->{'_minlen'} or $digits > $self->{'_maxlen'}
754 1 0 81 $x->is_zero or $x->is_nan
1 0 81 $x->is_zero or $x->is_nan or $x->is_inf
835 0 8 77 not defined $char or $char >= @{$self->{'_start'};}
8 2 75 not defined $char or $char >= @{$self->{'_start'};} or $char < 0
888 8 7 58 $char < 0 or $char >= @{$self->{'_start'};}
945 0 0 4 $depth < 1 or $depth > 2