Branch Coverage

blib/lib/App/MatrixTool/Command/server_key.pm
Criterion Covered Total %
branch 0 34 0.0


line true false branch
95 0 0 unless $body->{'server_name'} eq $server_name
102 0 0 unless my $got_cert = &Net::SSLeay::d2i_X509_bio($bio)
105 0 0 &Net::SSLeay::X509_digest($server_cert, 140341893631872) eq &Net::SSLeay::X509_digest($got_cert, 140341893631872) ? :
150 0 0 unless $body->{'server_name'} eq $server_name
155 0 0 unless $_->{'sha256'}
156 0 0 if &decode_base64($_->{'sha256'}) eq $fingerprint
158 0 0 $fprint_ok ? :
184 0 0 unless (my $key = $keys_by_id{$key_id})
195 0 0 unless $verified
198 0 0 if $verified
204 0 0 unless $ok
220 0 0 if $opts->{'v1'} and $opts->{'v2'}
223 0 0 $opts->{'v2'} ? :
236 0 0 if (not exists $cached_keys{$_->{'id'}}) { }
0 0 elsif ($cached_keys{$_->{'id'}} eq $_->{'key'}) { }
241 0 0 unless $opts->{'no_store'}
252 0 0 $opts->{'v1'} ? :