File Coverage

blib/lib/Email/Thread.pm
Criterion Covered Total %
statement 12 17 70.5
branch n/a
condition n/a
subroutine 4 7 57.1
pod n/a
total 16 24 66.6


line stmt bran cond sub pod time code
1 1     1   26099 use strict;
  1         2  
  1         30  
2 1     1   5 use warnings;
  1         2  
  1         44  
3             package Email::Thread;
4             {
5             $Email::Thread::VERSION = '0.712';
6             }
7             # ABSTRACT: Use JWZ's mail threading algorithm with Email::Simple objects
8              
9 1     1   819 use parent 'Mail::Thread';
  1         266  
  1         5  
10              
11             sub _get_hdr {
12 0     0     my ($class, $msg, $hdr) = @_;
13 0           $msg->header($hdr);
14             }
15              
16 0     0     sub _container_class { "Email::Thread::Container" }
17              
18             package Email::Thread::Container;
19             {
20             $Email::Thread::Container::VERSION = '0.712';
21             }
22 1     1   50453 use parent -norequire, 'Mail::Thread::Container';
  1         3  
  1         7  
23              
24 0     0     sub header { eval { $_[0]->message->header($_[1]) } }
  0            
25              
26             1;
27              
28             __END__