Branch Coverage

File:C4/Reserves.pm
Coverage:0.0%

line%coveragebranch
1470TFif $resdate
1480TFunless $resdate
1490TFif ($expdate) { }
1540TFif ('C4::Context'->preference('AllowHoldDateInFuture'))
1610TFif ($found eq 'W')
1670TFif ($fee > 0)
1970TFif ('C4::Context'->preference('emailLibrarianWhenHoldIsPlaced'))
2000TFif (my $letter = C4::Letters::GetPreparedLetter('module', 'reserves', 'letter_code', 'HOLDPLACED', 'branchcode', $branch, 'tables', {'branches', $branch_details, 'borrowers', $borrower, 'biblio', $biblionumber}))
2250TFunless $const eq 'o' or $const eq 'e'
2500TFunless my($biblionumber) = shift @_
2700TFunless ($all_dates)
2810TFif ($$data{'constrainttype'} eq 'o')
3000TFif ($count > 1) { }
3360TFunless ($all_dates)
3570TFif ($status) { }
3910TFif (@hostitems)
3960TFif CanItemBeReserved($borrowernumber, $item)
4160TF'C4::Context'->preference('item-level_itypes') ? :
4490TFif ($controlbranch eq 'ItemHomeLibrary') { }
0TFelsif ($controlbranch eq 'PatronLibrary') { }
4590TFif (my $rights = $sth->fetchrow_hashref) { }
4700TFif $itemtype ne '*'
4730TFif ($itemtype eq '*') { }
4800TFif (my $rowcount = $sthcount->fetchrow_hashref)
4850TFif ($reservecount < $allowedreserves) { }
5290TFif ($checkreserves)
5310TFif ($$iteminfo{'holdingbranch'} ne $$checkreserves{'branchcode'}) { }
5920TFif ($fee > 0)
6030TFif ($const eq 'a') { }
6100TFif (@$bibitems->{'biblioitemnumber'} == $$data{'biblioitemnumber'})
6170TFif ($const eq 'o') { }
6180TFif ($found == 1)
6230TFif ($found == 0)
6470TFif (my $isdata = $sth3->fetchrow_hashref) { }
6550TFif ($allissued == 0)
6590TFif (my $rdata = $rsth->fetchrow_hashref) { }
7090TFif ($frombranch)
7140TFif ($frombranch) { }
7730TFif ('C4::Context'->preference('item-level_itypes')) { }
7980TFif ($item) { }
8090TFunless $itemnumber
8130TFif $notforloan_per_item > 0 or $notforloan_per_itemtype
8230TFif (scalar @reserves)
8260TFif ($$res{'itemnumber'} == $itemnumber and $$res{'priority'} == 0) { }
8300TFif ($$res{'priority'} and $$res{'priority'} < $priority)
8350TFif $$branchitemrule{'holdallowed'} == 0
8360TFif $$branchitemrule{'holdallowed'} == 1 and $branch ne $$borrowerinfo{'branchcode'}
8460TFif ($highest)
8780TFif ('C4::Context'->preference('ExpireReservesMaxPickUpDelay'))
8870TFif ($charge)
9180TFif ($item and $borr) { }
10330TFif $rank eq 'W'
10340TFif $rank eq 'n'
10360TFif ($rank eq 'del') { }
0TFelsif ($rank =~ /^\d+/ and $rank > 0) { }
11400TFunless ($priority == 0)
11670TFif ('C4::Context'->preference('ReturnToShelvingCart') and $newstatus)
12000TF$request && $$request{'found'} eq 'W' ? :
12040TFif ($transferToDo) { }
12280TFif not $transferToDo and not $already_on_shelf
12300TFif ('C4::Context'->preference('ReturnToShelvingCart'))
13770TFif ('C4::Context'->preference('item-level_itypes')) { }
13920TFif (my($notforloan) = $sth->fetchrow_array)
13930TFif $notforloan
13970TFif $$item{'itemlost'} or $$item{'notforloan'} > 0 or $$item{'damaged'} and not 'C4::Context'->preference('AllowHoldsOnDamagedItems') or $$item{'wthdrawn'} or $notforloan_per_itemtype
14040TFif ('C4::Context'->preference('AllowOnShelfHolds')) { }
14310TFif ($where eq 'up' or $where eq 'down') { }
0TFelsif ($where eq 'top') { }
0TFelsif ($where eq 'bottom') { }
14340TF$where eq 'up' ? :
14910TFif ($rank eq 'del')
14940TFif ($rank eq 'W' or $rank eq '0')
15330TFif ($borrowernumber == $priority[$i]{'borrowernumber'})
15400TFif ($key > -1 and $rank ne 'del' and $rank > 0)
15690TFunless ($ignoreSetLowestRank)
16230TFif (my $data = $sth->fetchrow_hashref)
16260TFif @results
16530TFif (my $data = $sth->fetchrow_hashref)
16560TFif @results
17090TFif ($which_address eq 'OFF') { }
17180TFif ($to_address or $$borrower{'smsalertnumber'}) { }
17210TFif not defined $$messagingprefs{'letter_code'}
17400TFunless my $letter = C4::Letters::GetPreparedLetter('module', 'reserves', 'letter_code', $letter_code, 'branchcode', $$reserve{'branchcode'}, 'tables', {'branches', $branch_details, 'borrowers', $borrower, 'biblio', $biblionumber, 'reserves', $reserve, 'items', $$reserve{'itemnumber'}}, 'substitute', {'today', 'C4::Dates'->new->output})
17560TFif ($print_mode)
17660TFif (grep {$_ eq 'email';} @{$$messagingprefs{'transports'};})
17770TFif (grep {$_ eq 'sms';} @{$$messagingprefs{'transports'};})
18140TFif $min_priority
18490TFunless $res
18540TFif ($$res{'borrowernumber'} == $borrowernumber) { }
18640TFunless $$_{'borrowernumber'} == $borrowernumber
18650TFunless $$_{'biblionumber'} == $biblionumber
18710TFif ($borr_res)
18760TFif ($cancelreserve)
18970TFif (my $data = $sth->fetchrow_hashref)
19400TFunless my $reserve = GetReserveInfo($borrowernumber, $biblionumber)