Branch Coverage

blib/lib/Mail/DKIM/Common.pm
Criterion Covered Total %
branch 8 46 17.3


line true false branch
32 3384 2 if ($line =~ /^([^:]+?)\s*:(.*)/s)
42 0 287 if ($self->{'algorithm'})
86 0 0 if (my $message_id = $self->message_id)
90 0 0 if (my $sig = $self->signature)
94 0 0 if ($self->{'headers_by_name'}{'sender'}) { }
0 0 elsif ($self->{'headers_by_name'}{'from'}) { }
96 0 0 if ($list[0])
102 0 0 if ($list[0])
112 0 0 unless @_ == 0
114 0 0 if (my $message_id = $self->{'headers_by_name'}{'message-id'})
115 0 0 if ($message_id =~ /^\s*<(.*)>\s*$/)
124 0 0 unless @_ == 0
126 0 0 if ($self->{'headers_by_name'}{'from'})
128 0 0 if @list
135 0 0 unless @_ == 0
137 0 0 if ($self->{'headers_by_name'}{'sender'})
139 0 0 if @list
141 0 0 if ($self->{'headers_by_name'}{'from'})
143 0 0 if @list
150 0 253 unless @_ == 0
156 0 100 unless @_ == 0
158 63 37 if ($self->{'details'})
166 0 27 unless @_ == 0