Branch Coverage

blib/lib/Catalyst/View/Template/Pure.pm
Criterion Covered Total %
branch 37 64 57.8


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'};})
86 0 7 unless &blessed($c)
88 0 7 scalar(@args) % 2 ? :
91 7 0 &blessed($self) ? :
93 2 5 if delete $args{'clear_stash'}
98 0 5 if ($proto)
100 0 0 if (ref $proto eq 'HASH') { }
101 0 0 if exists $proto->{$field}
103 0 0 if (my $cb = $proto->can($field))
111 0 5 if $self->can('modify_context_args')
112 0 5 if $self->can('handle_request')
115 5 0 if (exists $args->{'template'}) { }
0 0 elsif (exists $args->{'template_src'}) { }
124 2 3 exists $args->{'pure_class'} ? :
153 1 4 if $self->{'__components'}
162 0 2 unless $params{'node'}->attr
163 2 2 unless $key and $params{$key}
164 1 1 unless my $proto = ($params{$key} =~ /^\$(.+)$/)[0]
195 0 2 unless $self->{'ctx'}
198 0 2 if $res->status != 200
200 0 2 if (ref $proto[0] eq 'ARRAY')
205 2 0 unless $res->content_type