ccode59i.pl

filter: Statementstmt 100% 15 / 15 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 90.9% 20 / 22 CC 1 SCAR 0.0
CC
1
Cov
89%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« C.xs ↑ Summary blib/lib/B/Asmdata.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use IO::Socket;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 my $remote = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "perl.org", PeerPort => "80" );
5 1 ▶if ($remote) {
Branch: 1 branch
BranchTrueFalseTotal
if ($remote) 1 0 1
6 1 print $remote "GET / HTTP/1.0" . "\r\n\r\n";
7 1 my $result = <$remote>;
8 1 ▶ $result =~ m|HTTP/1.1 200 OK| ? print "ok" : print $result;
Branch: 1 branch
BranchTrueFalseTotal
$result =~ m[HTTP/1.1 200 OK] ? : 0 1 1
9 1 close $remote;
10 }
« C.xs ↑ Summary blib/lib/B/Asmdata.pm »