Branch Coverage

blib/lib/Dash.pm
Criterion Covered Total %
branch 25 112 22.3


line true false branch
40 11 2 if (defined $layout) { }
42 9 2 if ($type eq 'CODE' or &Scalar::Util::blessed($layout) and $layout->isa('Dash::BaseComponent')) { }
77 0 8 if (scalar @_ < 5) { }
83 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 '') { }
86 0 0 if ($argument->isa('Dash::Dependencies::Output'))
90 0 0 if (scalar @$argument > 0) { }
92 0 0 if (&Scalar::Util::blessed($first_element))
93 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')) { }
116 0 0 unless (defined $output_index)
119 0 0 unless (defined $input_index)
122 0 0 unless (defined $callback_index)
129 0 0 if (defined $state_index)
141 12 14 if (ref $value eq 'ARRAY') { }
0 14 elsif (&Scalar::Util::blessed($value)) { }
144 0 14 if (&Scalar::Util::blessed($dependency)) { }
165 2 6 if (ref $output eq 'ARRAY')
238 1 0 if (&Scalar::Util::blessed($_) and $_->isa('Dash::Exceptions::PreventUpdate')) { }
259 0 0 unless (caller 1)
288 1 2 if ($output_type eq 'ARRAY') { }
2 0 elsif ($output_type eq 'HASH') { }
309 5 1 if (scalar values %{$self->_callbacks;} > 0) { }
311 0 5 if (scalar @$callbacks > 1) { }
5 0 elsif (scalar @$callbacks == 1) { }
321 5 0 if ($component_id eq $id and $component_property eq $property)
332 1 0 if ($component_id eq $id and $component_property eq $property)
350 1 4 if ($output_type eq 'ARRAY') { }
4 0 elsif ($output_type eq 'HASH') { }
462 0 0 if ($stack_depth++ >= $stack_depth_limit)
468 0 0 if ($type eq 'HASH') { }
0 0 elsif ($type eq 'ARRAY') { }
0 0 elsif ($type ne '') { }
478 0 0 if defined $node_dependencies
479 0 0 if ($node->can('children'))
494 0 0 unless ($dynamic)
496 0 0 unless ($rendered{$resource_path_part})
520 0 0 if (defined $dynamic)
524 0 0 if (defined $async)
525 0 0 if (defined $dynamic)
529 0 0 if ($async eq 'lazy') { }
532 0 0 if ($async eq 'eager' and not $eager_loading) { }
535 0 0 if ($async and not $eager_loading) { }
545 0 0 if (defined $namespace)
549 0 0 if (defined $external_url and not $serve_locally) { }
553 0 0 if (defined $dev_package_path and $dev_bundles) { }
557 0 0 if (defined $relative_package_path) { }
561 0 0 if (defined $absolute_path) { }
565 0 0 if (defined $asset_path) { }
570 0 0 if ($serve_locally) { }
598 0 1 if (scalar @name_parts > 2 and $name_parts[1] =~ /^v[\w-]+m[0-9a-fA-F]+$/u)