Branch Coverage

blib/lib/STIX/Parser.pm
Criterion Covered Total %
branch 38 44 86.3


line true false branch
93 133 0 if ($self->content or $self->file)
97 8 125 if ($self->file)
98 0 8 unless -e $self->file
102 0 133 unless $content
106 0 133 if $@
124 49 3388 if (ref $value eq "JSON::PP::Boolean")
125 36 13 if $value
126 13 36 unless $value
129 347 3090 if ($property =~ /_ref$/)
133 22 3415 if ($property =~ /_refs$/)
144 15 3422 if ($property eq "hashes")
148 1 3436 if ($property eq "body_multipart")
159 1 3436 if ($property eq "x509_v3_extensions")
163 26 3411 if ($property eq "kill_chain_phases")
176 1 3436 if ($property eq "alternate_data_streams")
188 12 3425 if ($property eq "extensions")
196 11 1 if (defined $EXTENSIONS_MAPPING{$extension})
207 0 3437 if ($property =~ /^x_/) { }
217 23 479 if ($_[0]{'source_name'})
221 0 479 if (%{$custom_properties;})
226 397 82 if (defined $_[0]{'type'} and defined $OBJECTS_MAPPING{$_[0]{'type'}})
228 1 396 if ($_[0]{'type'} eq "windows-registry-key" and defined $_[0]{'values'})