Sah/Schema/perl/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/distname_with_ver.pm ↑ Summary Sah/Schema/perl/identifier/qualified_ascii.pm »
1 package Sah::Schema::perl::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, either qualified with package name (e.g. Foo::subname) or unqualified (e.g. 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 Function name can be qualified (prefixed) by a package name, which is restricted
20 to this regex:
21  
22 [A-Za-z_][A-Za-z_0-9]*(::[A-Za-z_0-9]+)*
23  
24 _
25 match => '\A(?:[A-Za-z_][A-Za-z_0-9]*(::[A-Za-z_0-9]+)*::)?[A-Za-z_]([A-Za-z_0-9]+)*\z',
26  
27 # TODO: provide convenience by providing list of core function names etc
28 #'x.completion' => 'perl_funcname',
29  
30 }];
31  
32 1 1;
33 # ABSTRACT: Perl function name, either qualified with package name (e.g. Foo::subname) or unqualified (e.g. subname)
34  
35 __END__
« Sah/Schema/perl/distname_with_ver.pm ↑ Summary Sah/Schema/perl/identifier/qualified_ascii.pm »