Branch Coverage

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


line true false branch
121 18 6 if (defined $data)
123 3 15 unless ($is_parsed)
146 0 3 unless ($is_parsed)
157 1 18 if (exists $$self{'_parsed_options'}) { }
9 18 elsif (exists $$self{'_options'} and length $$self{'_options'} > 0) { }
164 0 19 if (not defined $$self{'_key'} or length $$self{'_key'} < $MIN_KEY_LENGTH)
169 9 10 if (exists $$self{'_comment'} and length $$self{'_comment'} > 0)
179 3 13 if (defined $key)
181 0 3 unless ($is_parsed)
185 0 16 if (not defined $$self{'_key'} or length $$self{'_key'} < $MIN_KEY_LENGTH)
192 0 3 unless (shift())->{'_protocol'}
196 0 3 unless (shift())->{'_keytype'}
202 3 15 if (defined $comment)
205 9 9 defined $$self{'_comment'} ? :
222 4 22 if (defined $new_options)
227 5 21 exists $$self{'_parsed_options'} ? :
231 16 10 defined $options_str ? :
244 1 4 unless (exists $$self{'_parsed_options'})
255 1 3 unless (exists $$self{'_parsed_options'})
266 0 3 unless (exists $$self{'_parsed_options'})
278 2 8 if (defined $ref)