Data/Sah/Value/perl/Path/curdir_abs.pm

filter: Statementstmt 65.0% 13 / 20 Branchbran n/a Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 48.4% 16 / 33 CC 3 SCAR 17.7
CC
3
Cov
54%
value
12.0
meta
2.0
BEGIN
1.0
CRAP 5.9
↑ Summary Data/Sah/Value/perl/Path/newest_file_in_curdir.pm »
1 package Data::Sah::Value::perl::Path::curdir_abs;
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 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8 1 our $DATE = '2024-02-16'; # DATE
9 1 our $DIST = 'Sah-SchemaBundle-Path'; # DIST
10 1 our $VERSION = '0.031'; # VERSION
11  
12 0 ▶sub meta {
Subroutine meta: not called CC=1 SCAR=6.9
Pod undocumented
13 +{
14 0 v => 1,
15 summary => 'Current directory, absolutified',
16 description => <<'MARKDOWN',
17  
18 MARKDOWN
19 args => {
20 },
21 };
22 }
23  
24 0 ▶sub value {
Subroutine value: not called CC=3 SCAR=24.8
Pod undocumented
25 0 my %cargs = @_;
26  
27 0 ▶ my $gen_args = $cargs{args} // {};
Condition0%0/2
$cargs{"args"} // {}
l!l
00
MC/DC0%0/1
$cargs{"args"} // {}
$cargs{"args"}
Truth table0%0/2
A
A= $cargs{"args"}
Aresult
11
00
28 0 my $res = {};
29  
30 0 ▶ $res->{modules}{"Cwd"} //= 0;
Condition0%0/2
$res->{"modules"}{"Cwd"} //= 0
l!l
00
MC/DC0%0/1
$res->{"modules"}{"Cwd"} //= 0
$res->{"modules"}{"Cwd"}
Truth table0%0/2
A
A= $res->{"modules"}{"Cwd"}
Aresult
11
00
31  
32 0 $res->{expr_value} = join(
33 '',
34 'Cwd::getcwd()',
35 );
36  
37 0 $res;
38 }
39  
40 1 1;
41 # ABSTRACT:
42  
43 __END__
↑ Summary Data/Sah/Value/perl/Path/newest_file_in_curdir.pm »