Branch Coverage

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


line true false branch
32 3324 2 if ($line =~ /^([^:]+?)\s*:(.*)/s)
42 0 279 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 247 unless @_ == 0
156 0 94 unless @_ == 0
158 58 36 if ($self->{'details'})
166 0 25 unless @_ == 0