Config/IOD/INI.pm

filter: Statementstmt 66.6% 16 / 24 Branchbran n/a Conditioncond 0.0% 0 / 12 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 43.7% 21 / 48 CC 7 SCAR 35.8
CC
7
Cov
44%
new
56.0
BEGIN
1.0
BEGIN
1.0
CRAP 36.0
↑ Summary Config/IOD.pm »
1 package Config::IOD::INI;
2  
3 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use parent qw(Config::IOD);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
10 1 our $DATE = '2022-05-02'; # DATE
11 1 our $DIST = 'Config-IOD'; # DIST
12 1 our $VERSION = '0.353'; # VERSION
13  
14 0 ▶sub new {
Subroutine new: not called CC=7 SCAR=40.3
Pod documented
15 0 my ($class, %attrs) = @_;
16 0 ▶ $attrs{enable_directive} //= 0;
Condition0%0/2
$attrs{"enable_directive"} //= 0
l!l
00
MC/DC0%0/1
$attrs{"enable_directive"} //= 0
$attrs{"enable_directive"}
Truth table0%0/2
A
A= $attrs{"enable_directive"}
Aresult
11
00
17 0 ▶ $attrs{enable_encoding} //= 0;
Condition0%0/2
$attrs{"enable_encoding"} //= 0
l!l
00
MC/DC0%0/1
$attrs{"enable_encoding"} //= 0
$attrs{"enable_encoding"}
Truth table0%0/2
A
A= $attrs{"enable_encoding"}
Aresult
11
00
18 0 ▶ $attrs{enable_quoting} //= 0;
Condition0%0/2
$attrs{"enable_quoting"} //= 0
l!l
00
MC/DC0%0/1
$attrs{"enable_quoting"} //= 0
$attrs{"enable_quoting"}
Truth table0%0/2
A
A= $attrs{"enable_quoting"}
Aresult
11
00
19 0 ▶ $attrs{enable_bracket} //= 0;
Condition0%0/2
$attrs{"enable_bracket"} //= 0
l!l
00
MC/DC0%0/1
$attrs{"enable_bracket"} //= 0
$attrs{"enable_bracket"}
Truth table0%0/2
A
A= $attrs{"enable_bracket"}
Aresult
11
00
20 0 ▶ $attrs{enable_brace} //= 0;
Condition0%0/2
$attrs{"enable_brace"} //= 0
l!l
00
MC/DC0%0/1
$attrs{"enable_brace"} //= 0
$attrs{"enable_brace"}
Truth table0%0/2
A
A= $attrs{"enable_brace"}
Aresult
11
00
21 0 ▶ $attrs{enable_tilde} //= 0;
Condition0%0/2
$attrs{"enable_tilde"} //= 0
l!l
00
MC/DC0%0/1
$attrs{"enable_tilde"} //= 0
$attrs{"enable_tilde"}
Truth table0%0/2
A
A= $attrs{"enable_tilde"}
Aresult
11
00
22 0 $class->SUPER::new(%attrs);
23 }
24  
25 1 1;
26 # ABSTRACT: Read and write INI configuration files
27  
28 __END__
↑ Summary Config/IOD.pm »