Branch Coverage

blib/lib/Protocol/Matrix.pm
Criterion Covered Total %
branch 20 32 62.5


line true false branch
122 0 10 unless my $key = $args{'secret_key'}
124 0 10 unless my $origin = $args{'origin'}
125 0 10 unless my $key_id = $args{'key_id'}
165 0 5 unless my $key = $args{'public_key'}
167 0 5 unless my $origin = $args{'origin'}
168 0 5 unless my $key_id = $args{'key_id'}
171 0 5 unless $data->{'signatures'}
172 1 4 unless $data->{'signatures'}{$origin}
175 1 3 unless my $signature = $data->{'signatures'}{$origin}{$key_id}
178 0 2 unless $sign->verify(&decode_base64($signature), encode_json_for_signing($data), $key)
223 0 13 unless defined(my $type = $event->{'type'})
233 1 12 if (my $allowed_content_keys = $ALLOWED_CONTENT_BY_TYPE{$type})
238 2 11 if exists $old_unsigned->{'age_ts'}
262 0 4 unless my $key = $args{'secret_key'}
264 0 4 unless my $origin = $args{'origin'}
265 0 4 unless my $key_id = $args{'key_id'}