blib/lib/Net/Peep/Notification.pm

filter: Statementstmt 52.0% 26 / 50 Branchbran 0.0% 0 / 10 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 45.4% 5 / 11 Podpod 0.0% 0 / 6 totaltotal 37.8% 31 / 82 CC 7 SCAR 15.1
CC
7
Cov
41%
new
6.0
message
6.0
status
6.0
CRAP 4.5
« blib/lib/Net/Peep/Client/Sysmonitor/Uptime.pm ↑ Summary blib/lib/Net/Peep/Peck.pm »
1 package Net::Peep::Notification;
2  
3 5 require 5.005;
4 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 5 ▶use Net::Peep::Log;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 5 require Exporter;
10  
11 5 ▶use vars qw{ @ISA %EXPORT_TAGS @EXPORT_OK @EXPORT $VERSION $LOGGER };
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 5 @ISA = qw(Exporter);
14 5 %EXPORT_TAGS = ( );
15 5 @EXPORT_OK = ( );
16 5 @EXPORT = qw( );
17 5 $VERSION = do { my @r = (q$Revision: 1.1 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
18  
19 5 $LOGGER = Net::Peep::Log->new();
20  
21 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
22  
23 0 my $self = shift;
24 0 ▶ my $class = ref($self) || $self;
Condition0%0/3
ref $self || $self
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $self || $self
ref $self $self
Truth table0%0/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
25 0 my $this = {};
26 0 bless $this, $class;
27  
28 } # end sub new
29  
30 0 ▶sub message {
Subroutine message: not called CC=2 SCAR=17.9
Pod undocumented
31  
32 0 my $self = shift;
33 0 ▶ if (@_) { $self->{_MESSAGE} = shift; }
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
34 0 return $self->{_MESSAGE};
35  
36 } # end sub message
37  
38 0 ▶sub status {
Subroutine status: not called CC=2 SCAR=17.9
Pod undocumented
39  
40 0 my $self = shift;
41 0 ▶ if (@_) { $self->{_STATUS} = shift; }
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
42 0 return $self->{_STATUS};
43  
44 } # end sub status
45  
46 0 ▶sub datetime {
Subroutine datetime: not called CC=2 SCAR=17.9
Pod undocumented
47  
48 0 my $self = shift;
49 0 ▶ if (@_) { $self->{_DATETIME} = shift; }
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
50 0 return $self->{_DATETIME};
51  
52 } # end sub datetime
53  
54 0 ▶sub client {
Subroutine client: not called CC=2 SCAR=17.9
Pod undocumented
55  
56 0 my $self = shift;
57 0 ▶ if (@_) { $self->{_CLIENT} = shift; }
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
58 0 return $self->{_CLIENT};
59  
60 } # end sub client
61  
62 0 ▶sub hostname {
Subroutine hostname: not called CC=2 SCAR=17.9
Pod undocumented
63  
64 0 my $self = shift;
65 0 ▶ if (@_) { $self->{_HOSTNAME} = shift; }
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
66 0 return $self->{_HOSTNAME};
67  
68 } # end sub hostname
69  
70 5 1;
71  
72 __END__
« blib/lib/Net/Peep/Client/Sysmonitor/Uptime.pm ↑ Summary blib/lib/Net/Peep/Peck.pm »