| 1 | package Data::Sah::Value::perl::Perl::these_mods; | ||||||||||||
| 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 module names', | ||||||||||||
| 16 | description => <<'_', | ||||||||||||
| 17 | |||||||||||||
| 18 | See <pm:App::ThisDist>'s `this_mod()` for more details on how "this module" is | ||||||||||||
| 19 | determined. Currently this rule returns a 1-element arrayref containing "this | ||||||||||||
| 20 | module". Note that currently `App::ThisDist` is not automatically added as | ||||||||||||
| 21 | prerequisite. | ||||||||||||
| 22 | |||||||||||||
| 23 | _ | ||||||||||||
| 24 | prio => 50, | ||||||||||||
| 25 | args => { | ||||||||||||
| 26 | }, | ||||||||||||
| 27 | }; | ||||||||||||
| 28 | } | ||||||||||||
| 29 | |||||||||||||
| 30 | 0 | ▶ | sub value { | ||||||||||
|
Subroutine
value: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||
| 31 | 0 | my %cargs = @_; | |||||||||||
| 32 | |||||||||||||
| 33 | 0 | ▶ | my $gen_args = $cargs{args} // {}; | ||||||||||
|
Condition0%0/2
$cargs{"args"} // {}
MC/DC0%0/1
$cargs{"args"} // {}
$cargs{"args"}
Truth table0%0/2
A
A= $cargs{"args"}
| |||||||||||||
| 34 | 0 | my $res = {}; | |||||||||||
| 35 | |||||||||||||
| 36 | # $res->{modules}{"App::ThisDist"} //= 0; | ||||||||||||
| 37 | |||||||||||||
| 38 | 0 | $res->{expr_value} = join( | |||||||||||
| 39 | '', | ||||||||||||
| 40 | 'do { if (eval { require App::ThisDist; 1 }) { my $thismod = App::ThisDist::this_mod(); defined $thismod ? [$thismod] : undef } else { undef } }', | ||||||||||||
| 41 | ); | ||||||||||||
| 42 | |||||||||||||
| 43 | 0 | $res; | |||||||||||
| 44 | } | ||||||||||||
| 45 | |||||||||||||
| 46 | 1 | 1; | |||||||||||
| 47 | # ABSTRACT: | ||||||||||||
| 48 | |||||||||||||
| 49 | __END__ | ||||||||||||