MP4Meta/Source/Base.pm

filter: Statementstmt 45.8% 11 / 24 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 100% 3 / 3 totaltotal 41.4% 17 / 41 CC 5 SCAR 22.7
CC
5
Cov
34%
get_tv_episode
20.0
get_film
6.0
new
2.0
CRAP 9.7
« MP4Meta/Source/TVDB.pm ↑ Summary MP4Meta/Source/Data/Base.pm »
1 4 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package App::MP4Meta::Source::Base;
6 {
7 4 $App::MP4Meta::Source::Base::VERSION = '1.153340';
8 }
9  
10 # ABSTRACT: Base class for sources
11  
12 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
13 0 my $class = shift;
14 0 my $args = shift;
15 0 my $self = {};
16  
17 # cache results
18 0 $self->{cache} = {};
19 0 $self->{banner_cache} = {};
20  
21 0 bless( $self, $class );
22 0 return $self;
23 }
24  
25 0 ▶sub get_film {
Subroutine get_film: not called CC=2 SCAR=17.9
Pod documented
26 0 my ( $self, $args ) = @_;
27  
28 0 ▶ die 'no title' unless $args->{title};
Branch: 1 branch
BranchTrueFalseTotal
unless $args->{"title"} 0 0 0
29 }
30  
31 0 ▶sub get_tv_episode {
Subroutine get_tv_episode: not called CC=4 SCAR=30.0
Pod documented
32 0 my ( $self, $args ) = @_;
33  
34 0 ▶ die 'no title' unless $args->{show_title};
Branch: 1 branch
BranchTrueFalseTotal
unless $args->{"show_title"} 0 0 0
35 0 ▶ die 'no season' unless $args->{season};
Branch: 1 branch
BranchTrueFalseTotal
unless $args->{"season"} 0 0 0
36 0 ▶ die 'no episode' unless $args->{episode};
Branch: 1 branch
BranchTrueFalseTotal
unless $args->{"episode"} 0 0 0
37 }
38  
39 4 1;
40  
41 __END__
« MP4Meta/Source/TVDB.pm ↑ Summary MP4Meta/Source/Data/Base.pm »