Httperf/Logger.pm

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 88.0% 22 / 25 CC 3 SCAR 7.2
CC
3
Cov
90%
Log
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« Httperf.pm ↑ Summary
1 package HTTP::Recorder::Httperf::Logger;
2 2 ▶use base 'HTTP::Recorder::Logger';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6  
7 2 $HTTP::Recorder::Httperf::Logger::VERSION = '0.01';
8 #just override the 'Log' method.
9 sub Log
10 4 ▶{
Subroutine Log: called CC=3 SCAR=11.3
Pod undocumented
11 4 my ($self, $line) = @_;
12 4 my $scriptfile = $self->{'file'};
13 4 ▶ open (SCRIPT, ">>$scriptfile") or die "Couldn't open $scriptfile: $!";
Branch: 1 branch
BranchTrueFalseTotal
open SCRIPT, ">>$scriptfile" or die "Couldn't open ${scriptfile}: $!" 4 0 4
14 4 print SCRIPT $line;
15 4 ▶ close SCRIPT or die "Couldn't close $scriptfile";
Branch: 1 branch
BranchTrueFalseTotal
close SCRIPT or die "Couldn't close $scriptfile" 4 0 4
16 }
17  
18  
19 2 1;
20  
« Httperf.pm ↑ Summary