MobileAgent/Display.pm

filter: Statementstmt 84.6% 11 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 50.0% 1 / 2 totaltotal 71.4% 15 / 21 SCAR 7.3
CC
2
Cov
73%
size
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« MobileAgent/DoCoMoDisplayMap.pm ↑ Summary MobileAgent/AirHPhone.pm »
1 package HTTP::MobileAgent::Display;
2 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 10 __PACKAGE__->HTTP::MobileAgent::make_accessors(
4 qw(width height color depth width_bytes height_bytes)
5 );
6  
7 10 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 10 $VERSION = 0.17;
9  
10 sub new {
11 7 ▶ my($class, %data) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
12 7 bless {%data}, $class;
13 }
14  
15 sub size {
16 0 ▶ my $self = shift;
Subroutine size: not called CC=2 SCAR=17.9
Pod documented
17 0 ▶ return wantarray ? ($self->width, $self->height) : $self->width * $self->height;
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 0 0 0
18 }
19  
20 10 1;
21 __END__
« MobileAgent/DoCoMoDisplayMap.pm ↑ Summary MobileAgent/AirHPhone.pm »