Branch Coverage

blib/lib/Lim/RPC/Protocol/HTTP.pm
Criterion Covered Total %
branch 0 34 0.0


line true false branch
77 0 0 unless (blessed $request and $request->isa('HTTP::Request'))
81 0 0 unless (defined &Lim::Config()->{'protocol'}{'http'}{'webroot'} and -d &Lim::Config()->{'protocol'}{'http'}{'webroot'})
89 0 0 if ($path eq '..')
90 0 0 unless (scalar @path)
96 0 0 if ($path)
104 0 0 if (-d $path)
109 0 0 unless (defined $file)
114 0 0 if (-d $path)
118 0 0 unless (-r $path)
123 0 0 if ($request->header('Content-Type') =~ m[(?:^|\s)application/x-www-form-urlencoded(?:$|\s|;)]ou) { }
133 0 0 if Lim::DEBUG()
135 0 0 unless (sysopen FILE, $path, 0)
144 0 0 unless (defined $size and defined $mtime)
150 0 0 if (defined $$query{'jsonpCallback'})
160 0 0 if ($@)
174 0 0 unless (LWP::MediaTypes::guess_media_type($path, $response))
180 0 0 if ($request->header('If-Modified-Since') and $request->header('If-Modified-Since') >= $mtime)