Branch Coverage

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


line true false branch
53 11 2 if (defined $layout) { }
55 9 2 if ($type eq 'CODE' or &Scalar::Util::blessed($layout) and $layout->isa('Dash::BaseComponent')) { }
97 0 8 if (scalar @_ < 5) { }
103 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 '') { }
106 0 0 if ($argument->isa('Dash::Dependencies::Output'))
110 0 0 if (scalar @$argument > 0) { }
112 0 0 if (&Scalar::Util::blessed($first_element))
113 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')) { }
136 0 0 unless (defined $output_index)
139 0 0 unless (defined $input_index)
142 0 0 unless (defined $callback_index)
149 0 0 if (defined $state_index)
161 12 14 if (ref $value eq 'ARRAY') { }
0 14 elsif (&Scalar::Util::blessed($value)) { }
164 0 14 if (&Scalar::Util::blessed($dependency)) { }
185 2 6 if (ref $output eq 'ARRAY')
201 0 0 unless (caller 1)
230 1 2 if ($output_type eq 'ARRAY') { }
2 0 elsif ($output_type eq 'HASH') { }
251 5 1 if (scalar values %{$self->_callbacks;} > 0) { }
253 0 5 if (scalar @$callbacks > 1) { }
5 0 elsif (scalar @$callbacks == 1) { }
263 5 0 if ($component_id eq $id and $component_property eq $property)
274 1 0 if ($component_id eq $id and $component_property eq $property)
292 1 4 if ($output_type eq 'ARRAY') { }
4 0 elsif ($output_type eq 'HASH') { }
299 2 0 unless (&Scalar::Util::blessed($output_value) and $output_value->isa('Dash::Internal::NoUpdate'))
305 1 0 if ($some_updated) { }
312 0 3 if (&Scalar::Util::blessed($updated_value) and $updated_value->isa('Dash::Internal::NoUpdate'))
416 0 0 if ($stack_depth++ >= $stack_depth_limit)
422 0 0 if ($type eq 'HASH') { }
0 0 elsif ($type eq 'ARRAY') { }
0 0 elsif ($type ne '') { }
432 0 0 if defined $node_dependencies
433 0 0 if ($node->can('children'))
448 0 0 unless ($dynamic)
450 0 0 unless ($rendered{$resource_path_part})
474 0 0 if (defined $dynamic)
478 0 0 if (defined $async)
479 0 0 if (defined $dynamic)
483 0 0 if ($async eq 'lazy') { }
486 0 0 if ($async eq 'eager' and not $eager_loading) { }
489 0 0 if ($async and not $eager_loading) { }
499 0 0 if (defined $namespace)
503 0 0 if (defined $external_url and not $serve_locally) { }
507 0 0 if (defined $dev_package_path and $dev_bundles) { }
511 0 0 if (defined $relative_package_path) { }
515 0 0 if (defined $absolute_path) { }
519 0 0 if (defined $asset_path) { }
524 0 0 if ($serve_locally) { }
552 0 1 if (scalar @name_parts > 2 and $name_parts[1] =~ /^v[\w-]+m[0-9a-fA-F]+$/u)