Condition Coverage

File:C4/Circulation.pm
Coverage:0.9%

line%coveragecondition
15567
ABdec
0X0
100
111
defined $1 and $1 eq '0'
2920
ABdec
0X0
100
111
'C4::Context'->preference('item-level_itypes') and 'C4::Context'->preference('BranchTransferLimitsType') eq 'itemtype'
3040
ABdec
0X0
100
111
$hbr and $$branches{$hbr}{'PE'}
3250
ABdec
0X0
100
111
$resfound and not $ignoreRs
3650
ABdec
0X0
100
111
defined $issuing_rule and defined $$issuing_rule{'maxissueqty'}
5110
Adec
00
11
$dbh->prepare('Select * from items where items.biblioitemnumber = ?') || die($dbh->errstr)
7040
ABdec
0X0
100
111
$$borrower{'category_type'} eq 'X' and $$item{'barcode'}
7230
ABCDdec
00000
00011
001X1
01XX1
1XXX1
$expirydate[0] == 0 or $expirydate[1] == 0 or $expirydate[2] == 0 or Date_to_Days(Today()) > Date_to_Days(@expirydate)
7390
ABdec
0X0
100
111
$allfinesneedoverride and $amount > 0
0
ABCdec
0XX0
10X0
1100
1111
$allfinesneedoverride and $amount > 0 and $amount <= $amountlimit and not $inprocess
0
ABCDdec
0XXX0
10XX0
110X0
11100
11111
$amount > $amountlimit and not $inprocess and not $allowfineoverride
0
ABdec
0X0
100
111
$amount > $amountlimit and not $inprocess and $allowfineoverride
7480
ABdec
0X0
100
111
$amount > 0 and $allfinesneedoverride
0
ABdec
0X0
100
111
$amount > $amountlimit and $allowfineoverride
0
ABdec
0X0
100
111
$amount > $amountlimit and not $allowfineoverride
7890
ABdec
0X0
100
111
$$item{'notforloan'} and $$item{'notforloan'} > 0
8220
ABdec
0X0
100
111
$$item{'wthdrawn'} and $$item{'wthdrawn'} > 0
8260
ABdec
0X0
100
111
$$item{'restricted'} and $$item{'restricted'} == 1
8330
ABdec
0X0
100
111
$userenv and $$userenv{'flags'} % 2 != 1
8440
ABdec
0X0
100
111
$$issue{'borrowernumber'} and $$issue{'borrowernumber'} eq $$borrower{'borrowernumber'}
9570
ABCdec
0XX0
10X0
1100
1111
$borrower and $barcode and $barcodecheck ne '0'
11110
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11160
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11210
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11260
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11310
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11360
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11410
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11460
ABdec
0X0
100
111
defined $loanlength and $$loanlength{'issuelength'} ne 'NULL'
11710
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'} ne 'NULL'
11760
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'} ne 'NULL'
11810
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'} ne 'NULL'
11860
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'} ne 'NULL'
11910
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'} ne 'NULL'
11960
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'} ne 'NULL'
12010
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'} ne 'NULL'
12060
ABdec
0X0
100
111
defined $results and $$results{'hardduedate'} ne 'NULL'
14870
ABdec
0X0
100
111
$branch and not GetBranchDetail($branch)
15060
ABdec
0X0
100
111
$issue and $$issue{'borrowernumber'}
15250
Adec
00
11
'C4::Context'->preference('HomeOrHoldingBranchReturn') || 'homebranch'
15260
Adec
00
11
$$item{$hbr} || ''
15290
Adec
00
11
$$borrower{'borrowernumber'} || undef
15390
ABdec
0X0
100
111
$hbr ne $branch and 'C4::Context'->preference('IndependantBranches')
16450
ABdec
0X0
100
111
$doreturn and $circulation_alert->is_enabled_for(\%conditions)
16610
ABCDEdec
00XXX0
010XX0
0110X0
011100
011111
1X0XX0
1X10X0
1X1100
1X1111
$doreturn || $$messages{'NotIssued'} and not $resfound and $branch ne $hbr and not $$messages{'WrongTransfer'}
16620
ABCdec
00X0
0100
0111
1XX1
'C4::Context'->preference('AutomaticItemReturn') or 'C4::Context'->preference('UseBranchTransferLimits') and not IsBranchTransferAllowed($branch, $hbr, $$item{'C4::Context'->preference('BranchTransferLimitsType')})
18360
ABdec
0X0
100
111
$dropbox and $$data{'lastincrement'}
18480
ABdec
0X0
100
111
$outstanding >= 0 and $amt >= 0
19110
ABdec
0X0
100
111
$accdata = $msth->fetchrow_hashref and $amountleft > 0
19710
ABdec
0X0
100
111
$circcontrol eq 'PickupLibrary' and ('C4::Context'->userenv and 'C4::Context'->userenv->{'branch'})
0
ABdec
0X0
100
111
'C4::Context'->userenv and 'C4::Context'->userenv->{'branch'}
19760
Adec
00
11
'C4::Context'->preference('HomeOrHoldingBranch') || 'homebranch'
19800
ABdec
0X0
100
111
not defined $branch and $branchfield eq 'holdingbranch'
22340
ABCdec
0X00
0X11
1000
1011
11X1
$$data1{'renewalsallowed'} and $$data1{'renewalsallowed'} > $$data1{'renewals'} or $override_limit
22800
ABdec
000
011
1X1
shift @_ || 'C4::Dates'->new->output('iso')
22940
ABdec
0X0
100
111
$datedue and not $datedue->output('iso')
25420
ABdec
0X0
100
111
$frombranch and $tobranch
27500
ABdec
0X0
100
111
'C4::Context'->preference('globalDueDate') and 'C4::Context'->preference('globalDueDate') =~ 'C4::Dates'->regexp('syspref')
27680
ABCdec
0XX0
10X0
1100
1111
$hardduedate and $hardduedate->output('iso') and $hardduedate->output('iso') ne '0000-00-00'
27700
ABdec
0X0
100
111
$datedue->output('iso') lt $hardduedate->output('iso') and $hardduedatecompare == 1
0
ABdec
0X0
100
111
$datedue->output('iso') gt $hardduedate->output('iso') and $hardduedatecompare == -1
27830
ABdec
0X0
100
111
'C4::Context'->preference('ReturnBeforeExpiry') and $datedue->output('iso') gt $$borrower{'dateexpiry'}
28190
ABCdec
0000
0011
01X1
1XX1
$result ne '0' or $countspecial ne '0' or $countspecialrepeatable ne '0'