Any/CocoaGrowl.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 2 totaltotal 66.6% 20 / 30 CC 1 SCAR 2.5
CC
1
Cov
71%
register
2.0
notify
2.0
BEGIN
1.0
CRAP 1.3
« Any.pm ↑ Summary Any/NetGrowlClient.pm »
1 package Growl::Any::CocoaGrowl;
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 Cocoa::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 Cocoa::Growl::growl_register(
14 app => $self->appname,
15 0 notifications => [ $self->encode_list(@{$events}) ],
16 );
17 }
18  
19 0 ▶sub notify {
Subroutine notify: not called CC=1 SCAR=6.9
Pod undocumented
20 0 my ($self, $event, $title, $message, $icon) = @_;
21 0 Cocoa::Growl::growl_notify(
22 name => $self->encode($event),
23 title => $self->encode($title),
24 description => $self->encode($message),
25 icon => $icon,
26 );
27 }
28  
29 1;
30 __END__
« Any.pm ↑ Summary Any/NetGrowlClient.pm »