MP4Meta/Source/Data/Base.pm

filter: Statementstmt 82.3% 14 / 17 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 70.3% 19 / 27 CC 3 SCAR 17.4
CC
3
Cov
67%
merge
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
« MP4Meta/Source/Base.pm ↑ Summary MP4Meta/MusicVideo.pm »
1 8 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package App::MP4Meta::Source::Data::Base;
6 {
7 8 $App::MP4Meta::Source::Data::Base::VERSION = '1.153340';
8 }
9  
10 # ABSTRACT: Base class for metadata.
11  
12 8 ▶use Object::Tiny qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
13 cover
14 genre
15 overview
16 title
17 year
18 8 );
19  
20 0 ▶sub merge {
Subroutine merge: not called CC=3 SCAR=24.8
Pod documented
21 0 my ( $self, $to_merge ) = @_;
22  
23 0 ▶ while ( my ( $key, $value ) = each(%$to_merge) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %$to_merge) 0 0 0
24 0 ▶ $self->{$key} = $value unless $self->{$key};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{$key} 0 0 0
25 }
26 }
27  
28 8 1;
29  
30 __END__
« MP4Meta/Source/Base.pm ↑ Summary MP4Meta/MusicVideo.pm »