ColorThemeBase/Base.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 81.4% 22 / 27 CC 2 SCAR 3.9
CC
2
Cov
86%
get_struct
2.2
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« ColorThemeBase/Static/FromStructColors.pm ↑ Summary ColorTheme/Test/Static.pm »
1 package ColorThemeBase::Base;
2  
3 7 ▶use strict 'subs', 'vars';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 #use warnings;
5 7 ▶use parent 'ColorThemeBase::Constructor';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 7 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8 7 our $DATE = '2024-07-17'; # DATE
9 7 our $DIST = 'ColorThemeBase-Static'; # DIST
10 7 our $VERSION = '0.009'; # VERSION
11  
12 1 ▶sub get_struct {
Subroutine get_struct: called CC=2 SCAR=7.9
Pod undocumented
13 1 my $self_or_class = shift;
14 1 ▶ if (ref $self_or_class) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $self_or_class) { } 1 0 1
15 1 \%{"$self_or_class->{orig_class}::THEME"};
16 } else {
17 0 \%{"$self_or_class\::THEME"};
18 }
19 }
20  
21 1 ▶sub get_args {
Subroutine get_args: called CC=1 SCAR=0.0
Pod undocumented
22 1 my $self = shift;
23 1 $self->{args};
24 }
25  
26 7 1;
27 # ABSTRACT: A suitable base class for all ColorTheme::* modules
28  
29 __END__
« ColorThemeBase/Static/FromStructColors.pm ↑ Summary ColorTheme/Test/Static.pm »