Insight/Utils.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 87.5% 21 / 24 CC 2 SCAR 3.9
CC
2
Cov
89%
_debug
2.1
_debug_level
2.0
BEGIN
1.0
CRAP 1.5
« Insight/Meta/Attribute/Trait/MIBEntry.pm ↑ Summary Insight/Device.pm »
1 package SNMP::Insight::Utils;
2  
3 # ABSTRACT: Support code for SNMP::Insight
4  
5 4 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 our $VERSION = '0.002'; # TRIAL VERSION:
10  
11 4 our ( @ISA, @EXPORT_OK );
12  
13 4 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
14 4 require Exporter;
15 4 @ISA = qw(Exporter);
16 4 @EXPORT_OK = qw( _debug _debug_level);
17 }
18  
19 10 ▶sub _debug {
Subroutine _debug: called CC=2 SCAR=7.6
20 10 ▶ $ENV{SNMP_INSIGHT_DEBUG} and print STDERR @_;
Branch: 1 branch
BranchTrueFalseTotal
$ENV{"SNMP_INSIGHT_DEBUG"} and print STDERR @_ 0 10 10
21 }
22  
23 0 ▶sub _debug_level {
Subroutine _debug_level: not called CC=1 SCAR=6.9
24 0 $ENV{SNMP_INSIGHT_DEBUG};
25 }
26  
27 4 1;
28  
29 # Local Variables:
30 # mode: cperl
31 # indent-tabs-mode: nil
32 # cperl-indent-level: 4
33 # cperl-indent-parens-as-block: t
34 # End:
35  
36 __END__
« Insight/Meta/Attribute/Trait/MIBEntry.pm ↑ Summary Insight/Device.pm »