Branch Coverage

blib/lib/Paludis/ResumeState/Serialization/Basic.pm
Criterion Covered Total %
branch 13 24 54.1


line true false branch
24 0 0 unless Class::Load::load_optional_class('Data::Dumper')
56 6 0 if ($content =~ /$grammar/)
90 276 177 if (defined _STRING($value))
94 177 0 if (_HASHLIKE $value)
95 111 66 if (defined $$value{'type'} and $$value{'type'} eq 'class')
98 66 0 if (defined $$value{'type'} and $$value{'type'} eq 'array')
125 0 3 unless _HASHLIKE $data
126 0 3 unless defined $$data{'ResumeSpec'}
127 0 3 unless defined $$data{'ResumeSpec'}{'classname'}
128 0 3 unless defined $$data{'ResumeSpec'}{'type'} and $$data{'ResumeSpec'}{'type'} eq 'class'
129 0 3 unless defined $$data{'ResumeSpec'}{'parameters'}
130 0 3 unless defined $$data{'ResumeSpec'}{'pid'}