Branch Coverage

blib/lib/Mail/Header/Generator.pm
Criterion Covered Total %
branch 38 46 82.6


line true false branch
92 0 3 unless $args
104 9 6 if (ref $referent)
177 1 2 unless exists $data{'header_name'}
182 1 2 $data{'header_name'} ? :
2 1 $data{'queue_id'} ? :
260 4 0 unless exists $data{'user'}
261 4 0 unless $data{'user'}
264 3 1 unless exists $data{'recipients'}
265 3 1 unless exists $data{'header_name'}
268 3 1 if defined $data{'header_name'}
274 1 3 if ($data{'relay_address'}) { }
277 1 0 if exists $data{'helo'}
279 1 0 if ($data{'relay_hostname'} ne $relay_info)
287 1 3 if ($data{'hostname'})
289 1 0 if ($data{'protocol'} =~ /e?smtp/i and $data{'sender'})
295 0 4 if ($data{'product_name'})
299 1 3 if ($data{'protocol'} =~ /e?smtp/i)
303 1 3 if ($data{'queue_id'})
308 1 3 if (scalar @{$data{'recipients'};} == 1)
352 0 8 $diff < 0 ? :
388 2 2 unless exists $$args{'header_name'}
400 1 7 unless exists $data{'timestamp'}
410 4 4 defined $data{'header_name'} ? :