Plist/Foundation/NSMutableData.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 89.2% 25 / 28 CC 2 SCAR 2.6
CC
2
Cov
95%
serialize_equiv
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Plist/Foundation/NSDate.pm ↑ Summary Plist/Foundation/NSURL.pm »
1 package Data::Plist::Foundation::NSMutableData;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use base qw/Data::Plist::Foundation::NSData/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Data::Plist::BinaryWriter;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶sub data {
Subroutine data: called CC=1 SCAR=0.0
Pod undocumented
10 2 my $self = shift;
11 2 return $self->{"NS.data"};
12 }
13  
14 1 ▶sub serialize_equiv {
Subroutine serialize_equiv: called CC=2 SCAR=7.1
Pod undocumented
15 1 my $self = shift;
16 1 ▶ return $self->SUPER::serialize_equiv unless ref $self->data;
Branch: 1 branch
BranchTrueFalseTotal
unless ref $self->data 0 1 1
17 1 return { "NS.data" => Data::Plist::BinaryWriter->write( $self->data ) };
18 }
19  
20 1 1;
21  
« Plist/Foundation/NSDate.pm ↑ Summary Plist/Foundation/NSURL.pm »