DRI/Logging/Stderr.pm

filter: Statementstmt 66.6% 14 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 100% 3 / 3 totaltotal 63.6% 21 / 33 CC 2 SCAR 9.2
CC
2
Cov
61%
output
6.0
name
2.0
setup_channel
2.0
CRAP 2.5
« DRI/DRD/OVH.pm ↑ Summary DRI/DRD/VeriSign/COM_NET.pm »
1 ## Domain Registry Interface, STDERR Logging operations for Net::DRI
2 ##
3 ## Copyright (c) 2009 Patrick Mevzek <netdri@dotandco.com>. All rights reserved.
4 ##
5 ## This file is part of Net::DRI
6 ##
7 ## Net::DRI is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation; either version 2 of the License, or
10 ## (at your option) any later version.
11 ##
12 ## See the LICENSE file that comes with this distribution for more details.
13 ####################################################################################################
14  
15 package Net::DRI::Logging::Stderr;
16  
17 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 1 ▶use base qw/Net::DRI::Logging/;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 1 ▶use IO::Handle;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 1 *STDERR->autoflush();
25  
26 ####################################################################################################
27  
28 0 ▶sub name { return 'stderr'; }
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
29 0 ▶sub setup_channel { my ($self,$source,$type,$data)=@_; return; } ## nothing to do really
Subroutine setup_channel: not called CC=1 SCAR=6.9
Pod documented
30  
31 sub output
32 0 ▶{
Subroutine output: not called CC=2 SCAR=17.9
Pod documented
33 0 my ($self,$level,$type,$data)=@_;
34 0 ▶ if ($self->should_log($level)) { *STDERR->print($self->tostring($level,$type,$data),"\n"); }
Branch: 1 branch
BranchTrueFalseTotal
if ($self->should_log($level)) 0 0 0
35 0 return;
36 }
37  
38 ####################################################################################################
39 1 1;
40  
41 __END__
« DRI/DRD/OVH.pm ↑ Summary DRI/DRD/VeriSign/COM_NET.pm »