lib/Math/String/Charset.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 75 | 111 | 67.5 |
line | l | !l | condition |
---|---|---|---|
861 | 0 | 0 | $$str{'_cache'} = undef and return |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
114 | 202 | 0 | 0 | $$self{'_type'} == 2 and $$self{'_order'} == 1 |
125 | 69 | 161 | 0 | $Math::String::Charset::die_on_error and $$self{'_error'} ne '' |
166 | 245 | 0 | 1 | exists $$value{'charlen'} and exists $$value{'sep'} |
175 | 225 | 19 | 1 | exists $$value{'sets'} and exists $$value{'bi'} |
190 | 226 | 17 | 1 | exists $$value{'bi'} and $$self{'_type'} != 0 |
193 | 224 | 16 | 3 | exists $$value{'sets'} and $$self{'_type'} == 0 |
199 | 217 | 16 | 1 | $$self{'_type'} == 1 and $$self{'_order'} != 1 |
218 | 207 | 21 | 1 | defined $$self{'_sep'} and $$self{'_sep'} eq '' |
280 | 194 | 0 | 0 | $$self{'_cnum'}->is_zero and $$self{'_minlen'} > 0 |
625 | 59 | 0 | 39 | $x <= $j and $$self{'_minlen'} <= $ONE |
745 | 0 | 8 | 117 | 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 | 0 | 74 | defined $char and exists $$self{'_map'}{$char} |
line | l | !l | condition |
---|---|---|---|
57 | 6 | 0 | 'Math::BigInt'->config->{'lib'} || 'Math::BigInt::Calc' |
65 | 248 | 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 | 101 | 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 | 4 | 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 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
196 | 3 | 3 | 234 | $$self{'_type'} < 0 or $$self{'_type'} > 2 |
214 | 0 | 3 | 229 | $$self{'_order'} < 1 or $$self{'_order'} > 2 |
471 | 0 | 0 | 38 | $len < $$self{'_minlen'} or $len > $$self{'_maxlen'} |
548 | 1 | 1 | 121 | 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 | 6 | 79 | not defined $char or $char >= @{$$self{'_start'};} |
6 | 2 | 77 | not defined $char or $char >= @{$$self{'_start'};} or $char < 0 | |
888 | 8 | 7 | 59 | $char < 0 or $char >= @{$$self{'_start'};} |
945 | 0 | 0 | 4 | $depth < 1 or $depth > 2 |