Branch Coverage

blib/lib/Mojolicious/Plugin/XML/Loy.pm
Criterion Covered Total %
branch 22 30 73.3


line true false branch
19 0 2 if (my $config_param = $mojo->config('XML-Loy'))
23 1 1 if (exists $param->{'max_size'} and $param->{'max_size'} =~ /^\d+$/)
31 1 4 if (exists $mojo->renderer->helpers->{$helper})
39 1 3 if $base eq '-Loy'
41 3 1 if (index($base, '-') == 0)
43 0 3 $base eq 'Loy' ? :
47 3 1 unless (exists $base_classes{$base})
50 0 3 if (my $e = load_class($base))
52 0 0 if ref $e
62 2 1 if ($mime and $prefix)
78 3 1 if (@helper)
89 0 4 if $@
96 1 1 unless (exists $mojo->renderer->helpers->{'new_xml'})
111 5 0 if ($base_classes{$class})
112 2 0 if ($base_classes{$class}[0] and $base_classes{$class}[1])