Sah/Schema/dirname/unix/not_exists.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Sah/Schema/dirname/unix/exists.pm ↑ Summary Sah/Schema/dirnames/exist.pm »
1 package Sah::Schema::dirname::unix::not_exists;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6 1 our $DATE = '2024-02-16'; # DATE
7 1 our $DIST = 'Sah-SchemaBundle-Path'; # DIST
8 1 our $VERSION = '0.031'; # VERSION
9  
10 1 our $schema = ["dirname::unix" => {
11 summary => 'Unix directory name, must exist on filesystem',
12 description => <<'MARKDOWN',
13  
14 This is like the `dirname::unix` schema but with an extra check that the path
15 must not already exist.
16  
17 MARKDOWN
18 prefilters => [
19 'Path::check_path_not_exists',
20 ],
21 }];
22  
23 1 1;
24 # ABSTRACT: Unix directory name, must exist on filesystem
25  
26 __END__
« Sah/Schema/dirname/unix/exists.pm ↑ Summary Sah/Schema/dirnames/exist.pm »