Branch Coverage

blib/lib/Chef/Header.pm
Criterion Covered Total %
branch 13 50 26.0


line true false branch
137 2 2 if defined $obj
144 0 1 if defined $x_ops_sign
145 1 0 unless defined $self->header->{'X-Ops-Sign'}
153 0 1 if defined $x_chef_version
160 0 1 if (defined $host)
170 0 1 if defined $accept
171 1 0 unless defined $self->header->{'Accept'}
179 0 2 if defined $method
187 0 2 if (defined $path)
189 0 0 $path =~ m[^/] ? :
211 0 0 if defined $x_ops_timestamp
214 0 0 unless ($self->header->{'X-Ops-Timestamp'})
225 0 1 if defined $x_ops_user_id
233 2 15 unless defined $$self{'header'}
327 0 0 if defined $obj
333 0 0 if defined $method
340 0 0 if defined $hashed_path
347 0 0 if defined $x_ops_content_hash
354 0 0 if defined $x_ops_Timestamp
361 0 0 if defined $x_ops_user_id
373 0 0 unless defined $self->Method and defined $self->HashedPath and defined $self->XOpsContentHash and defined $self->XOpsTimestamp and defined $self->XOpsUserId
411 0 0 unless defined $string
412 0 0 if defined $string
416 0 0 if defined $fp
417 0 0 if defined $sp