Flickr/DefaultImage.pm

filter: Statementstmt 53.8% 7 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 58.8% 10 / 17 CC 1 SCAR 2.9
CC
1
Cov
54%
restore
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Flickr/Access.pm ↑ Summary
1 package Net::FS::Flickr::DefaultImage;
2 1 ▶use Imager;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use base qw(Imager);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 =head1 NAME
6  
7 Net::FS::Flickr::DefaultImage - provide a default image for Net::FS::Flickr
8  
9  
10 =head1 METHODS
11  
12 =head2 restore
13  
14 Returns an Imager object representing the default image
15  
16 =cut
17  
18 0 ▶sub restore {
Subroutine restore: not called CC=1 SCAR=6.9
Pod documented
19 0 my $class = shift;
20 0 my $self = $class->new;
21 {
22 0 local $/=undef;
23 0 $self->open( data => <DATA>, type=>'jpeg' );
24 }
25 0 return $self;
26 }
27  
28 =head1 AUTHOR
29  
30 Simon Wistow <simon@thegestalt.org>
31  
32 =cut
33  
34  
35  
36 1 1;
37 __DATA__
« Flickr/Access.pm ↑ Summary