File Coverage

blib/lib/Sah/Schema/str1.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::str1;
2              
3 1     1   447335 use strict;
  1         2  
  1         173  
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 => 'A non-empty string (length >= 1)',
12             min_len => 1,
13              
14             examples => [
15             {value=>'', valid=>0, summary=>'Empty'},
16             {value=>'a', valid=>1},
17             {value=>[], valid=>0, summary=>'Not a string'},
18             ],
19              
20             }];
21              
22             1;
23             # ABSTRACT:
24              
25             __END__