Branch Coverage

blib/lib/CGI/Application/Plugin/AnyTemplate.pm
Criterion Covered Total %
branch 62 70 88.5


line true false branch
565 2 80 ref $_[0] eq 'HASH' ? :
582 95 99 if (defined $config_name) { }
584 49 46 unless (exists $$self{$CGI::Application::Plugin::AnyTemplate::CAPAT_Namespace}{'__NAMED_CONFIGS'}{$config_name})
591 33 66 unless (exists $$self{$CGI::Application::Plugin::AnyTemplate::CAPAT_Namespace}{'__DEFAULT_CONFIG'})
714 58 54 if (@_)
715 16 42 if (@_ == 1) { }
716 0 16 if (ref $_[0] eq 'HASH') { }
722 6 10 if (ref $_[0] eq 'SCALAR') { }
742 58 54 if (keys %$config) { }
753 10 102 if (exists $$plugin_config{'return_references'})
772 17 508 if (exists $$self{'current_config'}{'driver_config'}{$type}{$param})
782 0 17 unless (exists $driver_config{$param})
789 8 103 if (exists $$plugin_config{'string'})
791 0 8 unless ref $string_ref
796 103 8 unless ($string_ref)
803 111 0 if ($$self{'webapp'}->can('call_hook'))
838 2 107 if (keys %tmpl_params)
910 328 1212 if exists $$config{$key}
934 53 277 if (exists $$config{$driver}{$key})
951 8 103 if (my $tmpl_path = $$self{'webapp'}->tmpl_path)
952 8 0 if (ref $tmpl_path ne 'ARRAY')
958 79 32 if ($$config{'include_paths'} and ref $$config{'include_paths'} ne 'ARRAY')
961 12 99 unless $$config{'include_paths'}
966 13 98 unless ref $$config{'add_include_paths'} eq 'ARRAY'
974 0 127 if $seen_include_path{$path}
979 0 111 if wantarray
996 0 207 if ($driver =~ /[^\w:]/)
1004 1 206 if ($@)
1015 24 79 if (exists $$plugin_config{'file'}) { }
1022 4 75 if (ref $$plugin_config{'template_filename_generator'} eq 'CODE')
1027 89 14 if ($$plugin_config{'auto_add_template_extension'})
1109 4 10 if (@_ == 2) { }
8 2 elsif (@_ == 1) { }
1114 4 4 if (ref $_[0] and ref $_[0] eq 'HASH') { }
1249 2 6 if ($path)