Branch Coverage

blib/lib/Mail/MtPolicyd/Plugin/Accounting.pm
Criterion Covered Total %
branch 14 20 70.0


line true false branch
48 0 31 if ($self->get_uc($session, 'enabled') eq 'off')
52 0 31 if ($r->is_already_done($self->name . '-acct'))
61 0 93 if (not defined $key or $key =~ /^\s*$/)
127 31 0 defined $recipient_count ? :
128 31 0 defined $size ? :
130 10 21 $rcpt_cnt ? :
131 10 21 $rcpt_cnt ? :
142 24 69 if ($@ =~ /^accounting row does not exist/) { }
0 69 elsif ($@) { }
192 24 69 if ($rows == 0)