Branch Coverage

blib/lib/TemplateM.pm
Criterion Covered Total %
branch 14 106 13.2


line true false branch
648 6 0 if defined $arg[0]
674 3 3 if (ref $file eq 'GLOB') { }
680 3 3 unless (defined $template)
681 3 0 if ($asfile) { }
684 0 0 if (_timeout_ok($cache, $timeout)) { }
685 0 0 if ($file =~ m[^/]) { }
0 0 elsif ($file =~ m[^\w+\://]) { }
697 0 0 if ($cache)
698 0 0 if ($template eq '') { }
705 0 0 if $cache
710 0 6 unless defined $template
711 0 6 if $onutf8
713 0 6 $modules{'galore'} eq 'GaloreWin32' ? :
765 0 0 if $uscode and ref $uscode eq 'CODE'
767 0 0 if $login
768 0 0 if $reqcode and ref $reqcode eq 'CODE'
770 0 0 if $rescode and ref $rescode eq 'CODE'
771 0 0 if ($res->is_success) { }
772 0 0 if ($onutf8) { }
774 0 0 unless defined $html
778 0 0 unless defined $html
793 0 0 if (ref $cf eq 'GLOB') { }
796 0 0 unless open $OUT, '>', $cf
797 0 0 unless flock $OUT, 2
801 0 0 if $onutf8
802 0 0 unless $onutf8
804 0 0 if $flc
812 0 0 if ($cf and -e $cf) { }
813 0 0 if (ref $cf eq 'GLOB') { }
816 0 0 unless open $IN, '<', $cf
818 0 0 if $onutf8
819 0 0 unless $onutf8
821 0 0 if $onutf8
834 3 0 if (ref $fn eq 'GLOB') { }
837 0 0 unless open $IN, '<', $fn
839 0 3 if $onutf8
840 3 0 unless $onutf8
842 0 3 if $onutf8
850 0 0 unless $cachefile and -e $cachefile
854 0 0 unless $timeout
856 0 0 if (time - $statfile[9] > $timeout) { }
864 3 0 unless $dir
873 0 0 unless $file
880 0 0 if ($mpflag)
881 0 0 if ($mpflag == 2) { }
0 0 elsif ($mpflag == 1) { }
893 0 0 if ($server_port and not $server_port =~ /^(80|443)$/)
894 0 0 if ($hostname and not $hostname =~ /\:\d+$/)
901 0 0 $request_uri =~ m[^/(.+/).*] ? :
904 0 0 if $server_port eq '443'
906 0 0 if ($tp == 1) { }
909 0 0 if ($hostname) { }
916 0 0 if ($hostname) { }