| 1 | package Data::Sah::Value::perl::Perl::this_mod; | ||||||||||||
| 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 => '"this" Perl module name', | ||||||||||||
| 16 | description => <<'_', | ||||||||||||
| 17 | |||||||||||||
| 18 | See <pm:App::ThisDist>'s `this_mod()` for more details on how "this module" is | ||||||||||||
| 19 | determined. Note that currently `App::ThisDist` is not automatically added as | ||||||||||||
| 20 | prerequisite. | ||||||||||||
| 21 | |||||||||||||
| 22 | _ | ||||||||||||
| 23 | prio => 50, | ||||||||||||
| 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"} // {}
MC/DC0%0/1
$cargs{"args"} // {}
$cargs{"args"}
Truth table0%0/2
A
A= $cargs{"args"}
| |||||||||||||
| 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 }) { App::ThisDist::this_mod() } else { undef } }', | ||||||||||||
| 40 | ); | ||||||||||||
| 41 | |||||||||||||
| 42 | 0 | $res; | |||||||||||
| 43 | } | ||||||||||||
| 44 | |||||||||||||
| 45 | 1 | 1; | |||||||||||
| 46 | # ABSTRACT: | ||||||||||||
| 47 | |||||||||||||
| 48 | __END__ | ||||||||||||