« Data/Sah/Value/perl/Path/newest_file_in_curdir.pm
↑ Summary
Data/Sah/Value/perl/Path/only_file_not_dir_in_curdir.pm »
| 1 | package Data::Sah::Value::perl::Path::only_file_in_curdir; | ||||||||||||
| 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 => 'Only file in current directory', | ||||||||||||
| 16 | description => <<'MARKDOWN', | ||||||||||||
| 17 | |||||||||||||
| 18 | This default value rule will return filename if there is a plain file in the | ||||||||||||
| 19 | current directory and nothing else. See <pm:File::Util::Test>'s | ||||||||||||
| 20 | `get_dir_only_file`. | ||||||||||||
| 21 | |||||||||||||
| 22 | MARKDOWN | ||||||||||||
| 23 | args => { | ||||||||||||
| 24 | }, | ||||||||||||
| 25 | }; | ||||||||||||
| 26 | } | ||||||||||||
| 27 | |||||||||||||
| 28 | 0 | ▶ | sub value { | ||||||||||
|
Subroutine
value: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||
| 29 | 0 | my %cargs = @_; | |||||||||||
| 30 | |||||||||||||
| 31 | 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"}
| |||||||||||||
| 32 | 0 | my $res = {}; | |||||||||||
| 33 | |||||||||||||
| 34 | 0 | ▶ | $res->{modules}{"File::Util::Test"} //= 0.628; | ||||||||||
|
Condition0%0/2
$res->{"modules"}{"File::Util::Test"} //= "0.628"
MC/DC0%0/1
$res->{"modules"}{"File::Util::Test"} //= "0.628"
$res->{"modules"}{"File::Util::Test"}
Truth table0%0/2
A
A= $res->{"modules"}{"File::Util::Test"}
| |||||||||||||
| 35 | |||||||||||||
| 36 | 0 | $res->{expr_value} = join( | |||||||||||
| 37 | '', | ||||||||||||
| 38 | 'File::Util::Test::get_dir_only_file()', | ||||||||||||
| 39 | ); | ||||||||||||
| 40 | |||||||||||||
| 41 | 0 | $res; | |||||||||||
| 42 | } | ||||||||||||
| 43 | |||||||||||||
| 44 | 1 | 1; | |||||||||||
| 45 | # ABSTRACT: | ||||||||||||
| 46 | |||||||||||||
| 47 | __END__ | ||||||||||||