Branch Coverage

File:C4/Letters.pm
Coverage:0.0%

line%coveragebranch
1030TFif (defined $cat) { }
1230TFif ('C4::Context'->preference('IndependantBranches') and $branchcode)
1270TFif (my $l = $letter{$module}{$code}{$branchcode})
1340TFunless my $line = $sth->fetchrow_hashref
1360TFif $$line{'is_html'}
1740TFunless my $alertid = shift @_
1750TFif $debug
1950TFif ($borrowernumber and $borrowernumber =~ /^\d+$/)
1990TFif ($type)
2030TFif ($externalid)
2280TFunless my $type = shift @_
2290TFunless my $externalid = shift @_
2300TF$type eq 'borrower' ? :
0TF$type eq 'issue' ? :
2340TFunless ($q)
2580TFif ($type eq 'issue') { }
0TFelsif ($type eq 'claimacquisition' or $type eq 'claimissues') { }
0TFelsif ($type eq 'members') { }
2660TFunless my($biblionumber) = $sth->fetchrow
2760TFunless my $email = $$borinfo{'email'}
2800TFunless my $letter = GetPreparedLetter('module', 'serial', 'letter_code', $letter_code, 'branchcode', $$userenv{'branch'}, 'tables', {'branches', $$_{'branchcode'}, 'biblio', $biblionumber, 'biblioitems', $biblionumber, 'borrowers', $borinfo}, 'want_librarian', 1)
3010TFunless sendmail(%mail)
3080TF$type eq 'claimacquisition' ? :
3370TFif $$databookseller{'bookselleremail'}
3380TFif $$databookseller{'contemail'}
3390TFunless (@email)
3450TFunless my $letter = GetPreparedLetter('module', $type, 'letter_code', $letter_code, 'branchcode', $$userenv{'branch'}, 'tables', {'branches', $$userenv{'branch'}, 'aqbooksellers', $databookseller}, 'repeat', $dataorders, 'want_librarian', 1)
3650TFunless sendmail(%mail)
3670TF$type eq 'claimissues' ? :
0TFif 'C4::Context'->preference('LetterLog')
3820TFunless my $letter = GetPreparedLetter('module', 'members', 'letter_code', $letter_code, 'branchcode', $$externalid{'branchcode'}, 'tables', {'branches', $branchdetails, 'borrowers', $$externalid{'borrowernumber'}}, 'substitute', {'borrowers.password', $$externalid{'password'}}, 'want_librarian', 1)
3940TFunless $$externalid{'emailaddr'}
4020TFunless sendmail(%mail)
4320TFunless my $module = $params{'module'}
4330TFunless my $letter_code = $params{'letter_code'}
4360TFunless my $letter = getletter($module, $letter_code, $branchcode)
4430TFunless $tables or $substitute or $repeat
4480TFif ($substitute)
4550TFif ($want_librarian)
4650TFif ($repeat)
4660TFif (ref $repeat eq 'ARRAY') { }
4730TFif ($repeat_enclosing_tags)
4750TFif ($$letter{'content'} =~ m[<$tag>(.*)</$tag>]s)
4870TFif ($tables)
4910TFif ($repeat_no_enclosing_tags)
4920TFif ($$letter{'content'} =~ /[^\n]*<<.*>>[^\n]*/so)
5190TFunless $param
5240TFif ($ref and $ref eq 'HASH') { }
5300TFunless ($sth)
5340TF$ref ? :
5460TFunless ($table)
5510TFif defined $handles{$table}
5520TF$table eq 'opac_news' ? :
0TF$table eq 'aqorders' ? :
0TF$table eq 'aqbooksellers' ? :
0TF$table eq 'suggestions' ? :
0TF$table eq 'branches' ? :
0TF$table eq 'borrowers' ? :
0TF$table eq 'reserves' ? :
0TF$table eq 'issues' ? :
0TF$table eq 'items' ? :
0TF$table eq 'biblioitems' ? :
0TF$table eq 'biblio' ? :
5650TFunless ($query)
5690TFunless ($handles{$table} = 'C4::Context'->dbh->prepare($query))
5920TFif ($table eq 'reserves' and $$values{'waitingdate'})
6040TFif ($$letter{'content'} and $$letter{'content'} =~ /<<today>>/)
6200TFif $val
6210TFdefined $val ? :
6220TFif ($$letter{'title'})
6260TFif ($$letter{'content'})
6320TFif ($table eq 'borrowers' and $$letter{'content'})
6330TFif (my $attributes = GetBorrowerAttributes($$values{'borrowernumber'}))
6380TFif $val
6390TFunless $val gt ''
6670TFunless my $params = shift @_
6690TFunless exists $$params{'letter'}
6700TFunless exists $$params{'borrowernumber'}
6710TFunless exists $$params{'message_transport_type'}
6740TFif ($$params{'attachments'})
7230TFif $$params{'verbose'} or $debug
7280TFif lc $$message{'message_transport_type'} eq 'rss'
7290TFif (lc $$message{'message_transport_type'} eq 'email') { }
0TFelsif (lc $$message{'message_transport_type'} eq 'sms') { }
7500TFunless $params
7510TFunless ref $params
7520TFunless $$params{'borrowernumber'}
7970TFif (exists $$params{'borrowernumber'})
8020TFif (@whereclauses)
8060TFif (defined $$params{'limit'})
8350TFunless @$attachments
8390TF$$letter{'is_html'} ? :
8730TFif (ref $params)
8740TFif ($$params{'message_transport_type'})
8780TFif ($$params{'borrowernumber'})
8820TFif ($$params{'limit'})
8870TFif $debug
8880TFif $debug
8950TFunless my $message = shift @_
8990TFunless ($to_address)
9010TFunless ($member)
9090TFif ($which_address eq 'OFF') { }
9140TFunless ($to_address)
9290TF$is_html ? :
9370TFif $username
9380TFif (my $bcc = 'C4::Context'->preference('OverdueNoticeBcc'))
9420TFunless $$message{'to_address'}
9430TFif (sendmail(%sendmail_params)) { }
9590TFif $css
9770TFunless my $message = shift @_
9790TFunless $$member{'smsalertnumber'}
9840TF$success ? :
9960TFunless my $params = shift @_
9990TFunless exists $$params{$required_parameter}