lib/BeamerReveal/Object.pm

filter: Statementstmt 60.0% 12 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 100% 3 / 3 totaltotal 58.0% 18 / 31 CC 2 SCAR 10.0
CC
2
Cov
55%
readParameterLine
6.0
new
2.0
makeSlide
2.0
CRAP 2.7
« lib/BeamerReveal.pm ↑ Summary script/awspolly.pl »
1 # -*- cperl -*-
2 # ABSTRACT: Object
3  
4  
5 package BeamerReveal::Object;
6 1 our $VERSION = '20261115.1249'; # VERSION
7  
8 1 ▶use parent 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 my $errorstring = "Error: BeamerReveal::Object is an abstract base class - only use derived objects\n";
14  
15  
16 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
17 0 carp( $errorstring );
18 }
19  
20  
21 0 ▶sub makeSlide {
Subroutine makeSlide: not called CC=1 SCAR=6.9
Pod documented
22 0 carp( $errorstring );
23 }
24  
25  
26 0 ▶sub readParameterLine {
Subroutine readParameterLine: not called CC=2 SCAR=17.9
Pod documented
27 0 my ( $line ) = @_;
28 0 my $braceconstructRegexp = qr { (?<val>
29 (?<brace_group>
30 \{
31 (?:
32 (?> [^{}]+ )
33 |
34 (?&brace_group)
35 )*
36 \}
37 )
38 )
39 }xs;
40 0 my $parmdb = {};
41 0 ▶ while( $line =~ /(?<kw>\w+)=${braceconstructRegexp},*/g ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($line =~ /(?<kw>\w+)=$braceconstructRegexp,*/g) 0 0 0
42 0 $parmdb->{$+{kw}} = substr( $+{val}, 1, -1 );
43 }
44 0 return $parmdb;
45 }
46  
47 1 1;
48  
49 __END__
« lib/BeamerReveal.pm ↑ Summary script/awspolly.pl »