Condition Coverage

blib/lib/App/cryp/arbit.pm
Criterion Covered Total %
condition 0 60 0.0


and 3 conditions

line !l l&&!r l&&r condition
501 0 0 0 $r->{'args'}{'usd_rates'} and $r->{'args'}{'usd_rates'}{$cur}
713 0 0 0 $r->{'args'}{'accounts'} and @{$r->{'args'}{'accounts'};} >= 2
911 0 0 0 _is_fiat($buy_currency) and $buy_currency ne 'USD'
915 0 0 0 _is_fiat($sell_currency) and $sell_currency ne 'USD'
1271 0 0 0 $args{'rounds'} > 0 and $round >= $args{'rounds'}
1380 0 0 0 $res->[2]{$type} and @{$res->[2]{$type};}
1542 0 0 0 $status eq 'open' and $time - $op->{'ctime'} > $r->{'args'}{'max_order_age'}
1572 0 0 0 $status eq 'open' and $time - $op->{'ctime'} > $r->{'args'}{'max_order_age'}
1776 0 0 0 defined $op->{'buy_filled_base_size'} and $op->{'buy_filled_base_size'}
1801 0 0 0 defined $op->{'sell_filled_base_size'} and $op->{'sell_filled_base_size'}

or 2 conditions

line l !l condition
606 0 0 $r->{'_cryp'}{'exchanges'}{$exchange}{$account} // {}
698 0 0 $opts //= {}
769 0 0 $r->{'args'}{'quote_currencies'} // []
829 0 0 $r->{'args'}{'base_currencies'} // []
1145 0 0 $args{'strategy'} // 'merge_order_book'
1225 0 0 $args{'strategy'} // 'merge_order_book'
1328 0 0 $fiat_for{$exchange} //= []
1334 0 0 $exchanges_for{$key} //= []
1337 0 0 $pairs_for{$exchange} //= []

or 3 conditions

line l !l&&r !l&&!r condition
506 0 0 0 $fxres->[0] == 200 or $fxres->[0] == 304
509 0 0 0 not $rate_mem{$cur} or $rate_mem{$cur} != $fxres->[2]{'rate'}
683 0 0 0 $fees->{$exchange} // $fees->{':default'}
684 0 0 0 $fees_exchange->{$currency} // $fees_exchange->{':default'}