Branch Coverage

blib/lib/Config/OpenSSH/Authkey/Entry.pm
Criterion Covered Total %
branch 35 42 83.3


line true false branch
122 18 6 if (defined $data)
124 3 15 unless ($is_parsed)
147 0 3 unless ($is_parsed)
158 1 18 if (exists $$self{'_parsed_options'}) { }
9 18 elsif (exists $$self{'_options'} and length $$self{'_options'} > 0) { }
165 0 19 if (not defined $$self{'_key'} or length $$self{'_key'} < $MIN_KEY_LENGTH)
170 9 10 if (exists $$self{'_comment'} and length $$self{'_comment'} > 0)
180 3 13 if (defined $key)
182 0 3 unless ($is_parsed)
186 0 16 if (not defined $$self{'_key'} or length $$self{'_key'} < $MIN_KEY_LENGTH)
193 0 3 unless (shift())->{'_protocol'}
197 0 3 unless (shift())->{'_keytype'}
203 3 15 if (defined $comment)
206 9 9 defined $$self{'_comment'} ? :
223 4 22 if (defined $new_options)
228 5 21 exists $$self{'_parsed_options'} ? :
232 16 10 defined $options_str ? :
245 1 4 unless (exists $$self{'_parsed_options'})
256 1 3 unless (exists $$self{'_parsed_options'})
267 0 3 unless (exists $$self{'_parsed_options'})
279 2 8 if (defined $ref)