Branch Coverage

blib/lib/Gantry.pm
Criterion Covered Total %
branch 14 188 7.4


line true false branch
39 0 0 unless ($self->can('engine'))
76 0 0 unless defined $$self{'__STASH__'}
108 0 0 if defined $p
119 0 0 if defined $p
130 0 0 if defined $p
141 0 0 if defined $p
152 0 0 if defined $p
164 0 0 if ($$self{'__PARSED_COOKIES__'})
166 0 0 if defined $want_cookie
175 0 0 unless defined $client
186 0 0 if (defined $want_cookie) { }
207 0 0 @opts == 1 && UNIVERSAL::isa($opts[0], 'HASH') ? :
210 0 0 unless defined $$options{'name'}
211 0 0 unless defined $$options{'value'}
218 0 0 if defined $$options{'path'}
220 0 0 if defined $$options{'domain'}
222 0 0 if defined $$options{'secure'} and $$options{'secure'}
226 0 0 if (defined $$options{'expire'})
227 0 0 unless $$options{'expire'} =~ /^\d+$/
244 0 0 unless defined $$self{'__COOKIE_STASH__'}
247 0 0 if (defined $p)
257 0 0 unless defined $$self{'__RESPONSE_HEADERS__'}
260 0 0 if (defined $key)
295 1 4 if (/^-Engine=(\S+)/) { }
4 0 elsif (/^-TemplateEngine=(\S+)/) { }
0 0 elsif (/^-StateMachine=(\S+)/) { }
0 0 elsif (/^-PluginNamespace=(\S+)/) { }
0 0 elsif (/^-PluginDir=(\S+)/) { }
296 1 0 unless ($class->can('engine'))
307 0 1 if ($@)
324 0 4 if ($@)
340 0 0 if ($@)
358 0 0 if (/\=(.*)$/o)
376 0 0 if ($@)
379 0 0 if ($plugin_namespace eq 'Gantry')
400 1 3 unless ($tplugin or $class->can('do_action'))
410 0 1 if ($@)
415 5 3 if (not $splugin || $class->can('state_run'))
426 0 5 if ($@)
461 0 0 $ENV{'HTTPS'} ? :
464 0 0 if (defined $plugin_callbacks{$self->namespace}{'init'})
532 0 0 if defined $p
543 0 0 if defined $p
553 0 0 if defined $p
564 0 0 if defined $p
575 0 0 if defined $p
586 4 5 if defined $p
597 0 0 if defined $p
617 0 0 if defined $p
628 0 0 if defined $p
639 0 0 if defined $p
650 0 0 if defined $p
661 0 0 if defined $p
672 0 0 if defined $p
683 0 0 if defined $p
694 0 0 if defined $p
705 0 0 if defined $p
716 0 0 if defined $p
727 0 0 if defined $p
738 0 0 if defined $p
749 0 0 if defined $p
760 0 0 if defined $p
771 0 0 if (defined $p)
787 0 0 if defined $p
798 0 0 if defined $p
809 0 0 if defined $p
820 0 0 if defined $p
831 0 0 if (defined $p)
847 0 0 if (defined $p)
863 0 0 if defined $p
874 0 0 if defined $p
885 0 0 if defined $p
896 0 0 if defined $p
917 0 0 unless $model
935 0 0 @opts == 1 && UNIVERSAL::isa($opts[0], 'HASH') ? :
940 0 0 if (defined $$self{'__MODELS__'}{'__AUTH_USERS__'}) { }
943 0 0 defined $$options{'user_name'} ? :
950 0 0 if @rows
968 0 0 defined $row ? :
977 0 0 if defined $p
988 0 0 if not defined $$self{'__AP_REQ__'} and defined $p
1000 0 0 if defined $p
1011 0 0 if defined $p
1027 0 0 if ($@)
1031 0 0 wantarray ? :
1046 0 0 if ($@)
1050 0 0 wantarray ? :
1060 0 0 if defined $p
1071 0 0 $self->method eq 'POST' ? :
1124 0 0 if ($self->can('get_schema'))
1129 0 0 if ($schema)
1139 0 0 if ($auth_schema)
1209 0 0 if $p =~ /^\./
1210 0 0 if exists $$exclude_hash{$p}