Any/MacGrowl.pm

filter: Statementstmt 62.5% 15 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 2 totaltotal 57.1% 20 / 35 CC 2 SCAR 8.6
CC
2
Cov
58%
notify
6.0
register
2.0
BEGIN
1.0
CRAP 2.4
« Any/GrowlNotifySend.pm ↑ Summary Any/DesktopNotify.pm »
1 package Growl::Any::MacGrowl;
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 Mac::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 0 my @e = $self->encode_list_from('MacRoman', @{$events});
14 0 Mac::Growl::RegisterNotifications($self->appname, [ @e, 'Error'], \@e);
15 }
16  
17 0 ▶sub notify {
Subroutine notify: not called CC=2 SCAR=17.9
Pod undocumented
18 0 my ($self, $event, $title, $message, $icon) = @_;
19 0 ▶ if (defined $icon) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $icon) 0 0 0
20 0 $icon = $self->icon_file($icon);
21 }
22 0 Mac::Growl::PostNotification($self->appname,
23 $self->encode_list_from( 'MacRoman', $event, $title, $message ), 0, 0, $icon);
24 }
25  
26 1;
27 __END__
« Any/GrowlNotifySend.pm ↑ Summary Any/DesktopNotify.pm »