File Coverage

blib/lib/Sah/Schema/latin_alphanum.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Sah::Schema::latin_alphanum;
2              
3 1     1   452452 use strict;
  1         3  
  1         246  
4              
5             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6             our $DATE = '2024-02-06'; # DATE
7             our $DIST = 'Sah-Schemas-Str'; # DIST
8             our $VERSION = '0.018'; # VERSION
9              
10             our $schema = [str => {
11             summary => 'String containing only zero or more Latin letters/digits, i.e. A-Za-z0-9',
12             match => qr/\A[A-Za-z0-9]*\z/,
13              
14             examples => [
15             {value=>'', valid=>1},
16             {value=>'A019', valid=>1},
17             {value=>'foo bar', valid=>0},
18             ],
19              
20             }];
21              
22             1;
23             # ABSTRACT:
24              
25             __END__