Any/NetGrowl.pm

filter: Statementstmt 75.0% 15 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 2 totaltotal 68.9% 20 / 29 CC 1 SCAR 2.5
CC
1
Cov
75%
register
2.0
notify
2.0
BEGIN
1.0
CRAP 1.3
« Any/NetGrowlClient.pm ↑ Summary Any/Null.pm »
1 package Growl::Any::NetGrowl;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use parent qw(Growl::Any::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Net::Growl ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub register {
Subroutine register: not called CC=1 SCAR=6.9
Pod undocumented
11 0 my ($self, $appname, $events) = @_;
12 0 $self->SUPER::register($appname, $events);
13 Net::Growl::register(
14 host => 'localhost',
15 application => $self->appname,
16 password => $self->{password},
17 0 );
18 }
19  
20 0 ▶sub notify {
Subroutine notify: not called CC=1 SCAR=6.9
Pod undocumented
21 0 my ($self, $event, $title, $message, $icon) = @_;
22 Net::Growl::notify(
23 application => $self->appname,
24 title => $self->encode($title),
25 description => $self->encode($message),
26 password => $self->{password},
27 0 );
28 }
29  
30 1;
31  
32 __END__
« Any/NetGrowlClient.pm ↑ Summary Any/Null.pm »