Branch Coverage

blib/lib/Dash.pm
Criterion Covered Total %
branch 27 116 23.2


line true false branch
56 11 2 if (defined $layout) { }
58 9 2 if ($type eq 'CODE' or &Scalar::Util::blessed($layout) and $layout->isa('Dash::BaseComponent')) { }
100 0 8 if (scalar @_ < 5) { }
106 0 0 if ($type eq 'CODE') { }
0 0 elsif (&Scalar::Util::blessed($argument)) { }
0 0 elsif ($type eq 'ARRAY') { }
0 0 elsif ($type eq 'SCALAR') { }
0 0 elsif ($type eq 'HASH') { }
0 0 elsif ($type eq '') { }
109 0 0 if ($argument->isa("Dash::Dependencies::Output"))
113 0 0 if (scalar @$argument > 0) { }
115 0 0 if (&Scalar::Util::blessed($first_element))
116 0 0 if ($first_element->isa('Dash::Dependencies::Output')) { }
0 0 elsif ($first_element->isa('Dash::Dependencies::Input')) { }
0 0 elsif ($first_element->isa('Dash::Dependencies::State')) { }
139 0 0 unless (defined $output_index)
142 0 0 unless (defined $input_index)
145 0 0 unless (defined $callback_index)
152 0 0 if (defined $state_index)
164 12 14 if (ref $value eq 'ARRAY') { }
0 14 elsif (&Scalar::Util::blessed($value)) { }
167 0 14 if (&Scalar::Util::blessed($dependency)) { }
188 2 6 if (ref $output eq "ARRAY")
204 0 0 unless (caller 1)
233 1 2 if ($output_type eq 'ARRAY') { }
2 0 elsif ($output_type eq 'HASH') { }
254 5 1 if (scalar values %{$self->_callbacks;} > 0) { }
256 0 5 if (scalar @$callbacks > 1) { }
5 0 elsif (scalar @$callbacks == 1) { }
266 5 0 if ($component_id eq $id and $component_property eq $property)
277 1 0 if ($component_id eq $id and $component_property eq $property)
295 1 4 if ($output_type eq 'ARRAY') { }
4 0 elsif ($output_type eq 'HASH') { }
302 2 0 unless (&Scalar::Util::blessed($output_value) and $output_value->isa("Dash::Internal::NoUpdate"))
308 1 0 if ($some_updated) { }
315 0 3 if (&Scalar::Util::blessed($updated_value) and $updated_value->isa("Dash::Internal::NoUpdate"))
419 0 0 if ($stack_depth++ >= $stack_depth_limit)
425 0 0 if ($type eq 'HASH') { }
0 0 elsif ($type eq 'ARRAY') { }
0 0 elsif ($type ne '') { }
435 0 0 if defined $node_dependencies
436 0 0 if ($node->can("children"))
451 0 0 unless ($dynamic)
453 0 0 unless ($rendered{$resource_path_part})
477 0 0 if (defined $dynamic)
481 0 0 if (defined $async)
482 0 0 if (defined $dynamic)
486 0 0 if ($async eq 'lazy') { }
489 0 0 if ($async eq 'eager' and not $eager_loading) { }
492 0 0 if ($async and not $eager_loading) { }
502 0 0 if (defined $namespace)
506 0 0 if (defined $external_url and not $serve_locally) { }
510 0 0 if (defined $dev_package_path and $dev_bundles) { }
514 0 0 if (defined $relative_package_path) { }
518 0 0 if (defined $absolute_path) { }
522 0 0 if (defined $asset_path) { }
527 0 0 if ($serve_locally) { }
555 0 1 if (scalar @name_parts > 2 and $name_parts[1] =~ /^v[\w-]+m[0-9a-fA-F]+$/u)