Branch Coverage

File:/usr/bin/print
Coverage:17.5%

line%coveragebranch
380TFif $error
550TF$error ? :
6450TFif ($file =~ /\.gz$/)
6550TFif ($file =~ /\.bz$/)
6650TFif ($file =~ /\.bz2$/)
6750TFif ($file =~ /\.Z$/)
6950TFif $debug and $encoding
790TFunless -r $file
810TFif $debug
820TFunless open MIMETYPES, "<$file"
860TFif /^\s*$/
920TFunless exists $mimetypes{$_}
104100TFunless -r $file
10650TFif $debug
10750TFunless open MAILCAP, "<$file"
11050TFif $line
112100TFunless $line
113100TFif ($line =~ /^\s*\#/)
11750TFif ($line =~ /\\$/) { }
1340TFunless defined $template
1420TFif $head
1430TFif $tail
1620TFif $match =~ /nametemplate=(.*?)\s*($|;)/
1640TFunless open TMPFILE, ">$tmpfile"
1670TFif $amt
1840TFif $efile eq '-'
1870TFif $debug
1900TFif $efile ne '-' and not -e $efile or $action eq 'compose'
1920TFif ($encoding eq 'gzip') { }
0TFelsif ($encoding eq 'bzip') { }
0TFelsif ($encoding eq 'bzip2') { }
0TFelsif ($encoding eq 'compress') { }
1930TFif ($efile eq '-') { }
1990TFif ($efile eq '-') { }
2050TFif ($efile eq '-') { }
2110TFif ($efile eq '-') { }
2210TFif ($res != 0)
2230TFif $retcode < 2
2400TFif ($encoding eq 'gzip') { }
0TFelsif ($encoding eq 'compress') { }
2410TFif ($efile eq '-') { }
2470TFif ($efile eq '-') { }
2570TFif ($res != 0)
2590TFif $retcode < 2
2720TFunless ($donemimetypes)
2820TFif $debug
29350TFif ($file =~ /$key/i)
2940TFif $debug
29950TFif $debug
31150TFif $ext
31250TFunless $type
32150TFif $debug
32250TFif (/^(-h|--help)$/) { }
50TFelsif (/^--(.*?)=(.*)$/) { }
100TFelsif (/^--(.*?)$/) { }
50TFelsif (m[^[^/:]+/[^/:]+:[^/:]+:]) { }
50TFelsif (m[^([^/:]+/[^/:]+):(.*)] and not -e $_) { }
3260TFif ${$1;} and ${$1;} != $2
32950TFif ${$1;} and ${$1;} != 1
3390TFif $debug
34450TFif ($code) { }
35150TFif ($type) { }
36050TFunless ($action)
36150TFif ($0 =~ m[(^|/)view$]) { }
50TFelsif ($0 =~ m[(^|/)see$]) { }
50TFelsif ($0 =~ m[(^|/)cat$]) { }
50TFelsif ($0 =~ m[(^|/)edit$]) { }
50TFelsif ($0 =~ m[(^|/)change$]) { }
50TFelsif ($0 =~ m[(^|/)compose$]) { }
50TFelsif ($0 =~ m[(^|/)print$]) { }
0TFelsif ($0 =~ m[(^|/)create$]) { }
37450TFunless $mailcaps
3810TF$code ? :
50TFif $debug
38350TFif ($file ne '-')
38450TFif ($action eq 'compose' or $action eq 'edit') { }
3850TFif (-e $file) { }
3860TFif (not -w $file)
3880TFif $retcode < 2
3920TFif (open TEST, ">$file") { }
3970TFif $retcode < 2
40250TFif (not -e $file)
404100TFif $retcode < 2
4070TFif (not -r $file)
4090TFif $retcode < 2
4160TFif ($code)
4190TFunless $file
4250TFif $type =~ /^$_$/i
4270TFunless $action eq 'view' or $action eq 'cat'
4330TFif $debug
4340TFif ($action eq 'view' or $action eq 'cat') { }
4390TFif not $comm or $comm =~ m[(^|/)false$]i
4400TFif $debug
4420TFif ($action eq 'cat' and not $match =~ /;\s*copiousoutput\s*($|;)/)
4430TFif $debug
4490TFif ($action ne 'print' and $match =~ /;\s*needsterminal\s*($|;)/ and not -t STDOUT) { }
0TFelsif ($action eq 'view' and not $nopager and $match =~ /;\s*copiousoutput\s*($|;)/ and $type ne 'text/plain') { }
4500TFif ($ENV{'DISPLAY'}) { }
4530TFif $debug
4610TFif ($match =~ /;\s*test=(.*?)\s*($|;)/)
4630TFif $debug
4660TF$test != 0 ? :
0TFif $debug
4670TFif ($test)
4730TFif ($file ne '-') { }
4740TFif ($comm =~ /[^%]%s/) { }
4750TFif ($file =~ m[[^ a-z0-9,.:/\@%^+=_-]]i) { }
4820TFif ($file =~ m[^/]) { }
4900TFif $debug
4960TFif ($comm =~ /\|/) { }
5010TFif ($action eq 'edit' or $action eq 'compose')
5060TFif ($comm =~ /[^%]%s/) { }
5220TFif $debug
5230TFif ($norun) { }
5300TFif ($res != 0)
5350TFif $tmpfile
5360TFif $tmplink
5400TFif (not $done)
5410TFif ($fail) { }
5440TFif $retcode < 3
5470TFif $retcode < 3
5490TFif $code
5500TFunless $retcode
5540TFif ($code)
5550TFif ($action eq 'edit' or $action eq 'compose') { }
5570TFif $file