File Coverage

blib/lib/Growl/Any/NetGrowl.pm
Criterion Covered Total %
statement 15 20 75.0
branch n/a
condition n/a
subroutine 5 7 71.4
pod 0 2 0.0
total 20 29 68.9


line stmt bran cond sub pod time code
1             package Growl::Any::NetGrowl;
2              
3 3     3   13 use strict;
  3         5  
  3         154  
4 3     3   15 use warnings;
  3         5  
  3         76  
5 3     3   12 use parent qw(Growl::Any::Base);
  3         5  
  3         18  
6              
7 3     3   134 use Carp ();
  3         7  
  3         38  
8 3     3   789 use Net::Growl ();
  1         1  
  1         148  
9              
10             sub register {
11 0     0 0   my ($self, $appname, $events) = @_;
12 0           $self->SUPER::register($appname, $events);
13 0           Net::Growl::register(
14             host => 'localhost',
15             application => $self->appname,
16             password => $self->{password},
17             );
18             }
19              
20             sub notify {
21 0     0 0   my ($self, $event, $title, $message, $icon) = @_;
22 0           Net::Growl::notify(
23             application => $self->appname,
24             title => $self->encode($title),
25             description => $self->encode($message),
26             password => $self->{password},
27             );
28             }
29              
30             1;
31              
32             __END__