Branch Coverage

blib/lib/Secret/Simple.pm
Criterion Covered Total %
branch 25 64 39.0


line true false branch
26 0 3 unless @args
27 0 3 if (ref $args[0] eq 'HASH') { }
30 1 2 if @args == 1
31 0 3 if scalar @args & 1
38 0 3 unless $tmp{$opt2}
41 0 3 unless $option{'key'}
44 0 3 if $option{'keyfilesize'}
53 0 1 unless $b64ciphertext
61 0 2 unless $ciphertext
75 0 1 unless $ciphertext
81 0 2 unless $plaintext
94 3 0 if (defined $key)
95 0 3 if ref $key and ref $key ne 'ARRAY'
105 3 0 unless (defined $$self{'keydata'})
108 2 1 ref $$self{'key'} eq 'ARRAY' ? :
112 0 3 if ($frag =~ /^\{sskeyfile\}/)
115 0 0 unless $fn
117 0 0 unless -r $fn1
131 0 0 if defined $num and not $num =~ /^\d+$/
132 0 0 if defined $num
140 0 1 unless $b64ciphertext
148 0 1 unless $ciphertext
149 1 0 @keyspec ? :
158 0 1 unless $plaintext
160 0 1 unless $ciphertext
166 0 1 unless $plaintext
167 1 0 @keyspec ? :
183 0 0 unless $fn
184 0 0 if $limit and not $limit =~ /^\d+$/
186 0 0 unless open my $F, $fn
190 0 0 if $limit and $num + $chunk > $limit
193 0 0 if $limit and $num >= $limit