Data/Sah/Value/perl/Perl/these_dists.pm

filter: Statementstmt 68.4% 13 / 19 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 55.1% 16 / 29 CC 2 SCAR 10.4
CC
2
Cov
62%
value
6.0
meta
2.0
BEGIN
1.0
CRAP 2.8
« Data/Sah/Filter/perl/Perl/check_module_release_expr.pm ↑ Summary Data/Sah/Value/perl/Perl/these_mods.pm »
1 package Data::Sah::Value::perl::Perl::these_dists;
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-Perl'; # DIST
10 1 our $VERSION = '0.050'; # VERSION
11  
12 0 ▶sub meta {
Subroutine meta: not called CC=1 SCAR=6.9
Pod undocumented
13 +{
14 0 v => 1,
15 summary => '"these" Perl distribution names',
16 description => <<'_',
17  
18 See <pm:App::ThisDist>'s `this_dist()` for more details on how "this
19 distribution" is determined. Currently this returns a 1-element arrayref
20 containing "this distribution". Note that currently `App::ThisDist` is not
21 automatically added as prerequisite.
22  
23 _
24 args => {
25 },
26 };
27 }
28  
29 0 ▶sub value {
Subroutine value: not called CC=2 SCAR=17.9
Pod undocumented
30 0 my %cargs = @_;
31  
32 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
33 0 my $res = {};
34  
35 # $res->{modules}{"App::ThisDist"} //= 0;
36  
37 0 $res->{expr_value} = join(
38 '',
39 'do { if (eval { require App::ThisDist; 1 }) { my $thisdist = App::ThisDist::this_dist(); defined $thisdist ? [$thisdist] : undef } else { undef } }',
40 );
41  
42 0 $res;
43 }
44  
45 1 1;
46 # ABSTRACT:
47  
48 __END__
« Data/Sah/Filter/perl/Perl/check_module_release_expr.pm ↑ Summary Data/Sah/Value/perl/Perl/these_mods.pm »