File Coverage

blib/lib/SNMP/Insight/Utils.pm
Criterion Covered Total %
statement 13 14 92.8
branch 1 2 50.0
condition n/a
subroutine 5 6 83.3
pod n/a
total 19 22 86.3


line stmt bran cond sub pod time code
1             package SNMP::Insight::Utils;
2              
3             # ABSTRACT: Support code for SNMP::Insight
4              
5 4     4   87 use 5.010;
  4         10  
  4         121  
6 4     4   15 use strict;
  4         5  
  4         115  
7 4     4   16 use warnings FATAL => 'all';
  4         4  
  4         374  
8              
9             our $VERSION = '0.002'; # TRIAL VERSION:
10              
11             our ( @ISA, @EXPORT_OK );
12              
13             BEGIN {
14 4     4   22 require Exporter;
15 4         37 @ISA = qw(Exporter);
16 4         279 @EXPORT_OK = qw( _debug _debug_level);
17             }
18              
19             sub _debug {
20 10 50   10   31 $ENV{SNMP_INSIGHT_DEBUG} and print STDERR @_;
21             }
22              
23             sub _debug_level {
24 0     0     $ENV{SNMP_INSIGHT_DEBUG};
25             }
26              
27             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__
37              
38             =pod
39              
40             =head1 NAME
41              
42             SNMP::Insight::Utils - Support code for SNMP::Insight
43              
44             =head1 VERSION
45              
46             version 0.002
47              
48             =head1 AUTHOR
49              
50             Gabriele Mambrini <g.mambrini@gmail.com>
51              
52             =head1 COPYRIGHT AND LICENSE
53              
54             This software is copyright (c) 2015 by Gabriele Mambrini.
55              
56             This is free software; you can redistribute it and/or modify it under
57             the same terms as the Perl 5 programming language system itself.
58              
59             =cut