Sah/Schema/perl/qualified_funcname.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Sah/Schema/perl/podname.pm ↑ Summary Sah/Schema/perl/release/version.pm »
1 package Sah::Schema::perl::qualified_funcname;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
7 1 our $DATE = '2024-02-16'; # DATE
8 1 our $DIST = 'Sah-SchemaBundle-Perl'; # DIST
9 1 our $VERSION = '0.050'; # VERSION
10  
11 1 our $schema = [str => {
12 summary => 'Perl function name qualified with a package name, e.g. Foo::subname',
13 description => <<'_',
14  
15 Currently function name is restricted to this regex:
16  
17 \A[A-Za-z_][A-Za-z_0-9]*\z
18  
19 and package name is restricted to this regex:
20  
21 [A-Za-z_][A-Za-z_0-9]*(::[A-Za-z_0-9]+)*
22  
23 This schema includes syntax validity check only; it does not check whether the
24 function actually exists.
25  
26 _
27 match => '\A(?:[A-Za-z_][A-Za-z_0-9]*(::[A-Za-z_0-9]+)*::)[A-Za-z_]([A-Za-z_0-9]+)*\z',
28  
29 # TODO: provide convenience by providing list of core function names etc
30 #'x.completion' => 'perl_funcname',
31  
32 }];
33  
34 1 1;
35 # ABSTRACT: Perl function name qualified with a package name, e.g. Foo::subname
36  
37 __END__
« Sah/Schema/perl/podname.pm ↑ Summary Sah/Schema/perl/release/version.pm »