Branch Coverage

lib/Mojolicious/Plugin/XML/Loy.pm
Criterion Covered Total %
branch 23 30 76.6


line true false branch
18 0 2 if (my $config_param = $mojo->config('XML-Loy'))
22 1 1 if (exists $$param{'max_size'} and $$param{'max_size'} =~ /^\d+$/)
30 1 4 if (exists $mojo->renderer->helpers->{$helper})
38 1 3 if $base eq '-Loy'
40 3 1 if (index($base, '-') == 0)
42 0 3 $base eq 'Loy' ? :
46 3 1 unless (exists $base_classes{$base})
49 0 3 if (my $e = load_class($base))
51 0 0 if ref $e
61 2 1 if ($mime and $prefix)
77 3 1 if (@helper)
88 0 4 if $@
95 1 1 unless (exists $mojo->renderer->helpers->{'new_xml'})
113 5 0 if ($base_classes{$class})
114 2 3 if ($base_classes{$class}[0] and $base_classes{$class}[1])