Any/GrowlNotifySend.pm

filter: Statementstmt 75.0% 15 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 68.9% 20 / 29 CC 2 SCAR 8.9
CC
2
Cov
68%
notify
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« Any/Base.pm ↑ Summary Any/MacGrowl.pm »
1 package Growl::Any::GrowlNotifySend;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use parent qw(Growl::Any::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use Growl::NotifySend ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶sub notify {
Subroutine notify: not called CC=2 SCAR=17.9
Pod undocumented
10 0 my ($self, $event, $title, $message, $icon) = @_;
11  
12 0 my @opts;
13 0 ▶ if(defined $icon) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $icon) 0 0 0
14 0 push @opts, 'icon', $self->icon_file($icon);
15 }
16  
17 Growl::NotifySend->show(
18 0 summary => $title,
19 body => $message,
20 @opts,
21 );
22 }
23  
24 1;
25 __END__
« Any/Base.pm ↑ Summary Any/MacGrowl.pm »