Branch Coverage

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


line true false branch
133 22 6 if (defined $data)
135 3 19 unless ($is_parsed)
158 0 3 unless ($is_parsed)
169 1 18 if (exists $self->{'_parsed_options'}) { }
9 18 elsif (exists $self->{'_options'} and length $self->{'_options'} > 0) { }
176 0 19 if (not defined $self->{'_key'} or length $self->{'_key'} < $MIN_KEY_LENGTH)
181 9 10 if (exists $self->{'_comment'} and length $self->{'_comment'} > 0)
191 3 17 if (defined $key)
193 0 3 unless ($is_parsed)
197 0 20 if (not defined $self->{'_key'} or length $self->{'_key'} < $MIN_KEY_LENGTH)
204 0 3 unless +(shift())->{'_protocol'}
208 0 3 unless +(shift())->{'_keytype'}
214 3 15 if (defined $comment)
217 9 9 defined $self->{'_comment'} ? :
234 4 22 if (defined $new_options)
242 5 21 exists $self->{'_parsed_options'} ? :
243 16 10 defined $options_str ? :
256 1 4 unless (exists $self->{'_parsed_options'})
267 1 3 unless (exists $self->{'_parsed_options'})
278 0 3 unless (exists $self->{'_parsed_options'})
290 2 10 if (defined $ref)