Branch Coverage

blib/lib/Catalyst/View/Template/Pure.pm
Criterion Covered Total %
branch 36 62 58.0


line true false branch
21 0 4 if $class->can('modify_init_args')
33 0 14 unless $_->has_init_arg
43 2 2 if (delete $args->{'auto_template_src'})
47 1 1 if (my $node = $dom->at('pure-component'))
48 1 0 if (my $script_node = $node->at('script'))
52 1 0 if (my $style_node = $node->at('style'))
60 0 4 if (delete $args->{'auto_script_src'})
64 0 4 if (delete $args->{'auto_style_src'})
72 2 2 unless $args->{'returns_status'}
77 0 118 unless $args->{'returns_status'}
2 116 if (grep {$code == $_;} @{[] unless $args->{'returns_status'};})
88 0 7 if (scalar(@args) % 2)
92 0 0 if (ref $proto eq 'HASH') { }
93 0 0 if exists $proto->{$field}
95 0 0 if (my $cb = $proto->can($field))
104 0 7 if $self->can('modify_context_args')
105 0 7 if $self->can('handle_request')
108 7 0 if (exists $args->{'template'}) { }
0 0 elsif (exists $args->{'template_src'}) { }
119 2 5 exists $args->{'pure_class'} ? :
124 7 0 &blessed($self) ? :
126 7 0 if (&blessed($c)) { }
130 2 5 if (my $clear = delete $args{'clear_stash'})
167 1 4 if $self->{'__components'}
176 0 2 unless $params{'node'}->attr
177 2 2 unless $key and $params{$key}
178 1 1 unless my $proto = ($params{$key} =~ /^\$(.+)$/)[0]
209 0 2 unless $self->{'ctx'}
212 0 2 if $res->status != 200
214 0 2 if (ref $proto[0] eq 'ARRAY')
219 2 0 unless $res->content_type