File Coverage

blib/lib/Data/Sah/FormatCommon.pm
Criterion Covered Total %
statement 5 5 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 7 7 100.0


line stmt bran cond sub pod time code
1             package Data::Sah::FormatCommon;
2              
3             our $DATE = '2017-07-10'; # DATE
4             our $VERSION = '0.003'; # VERSION
5              
6 2     2   51 use 5.010001;
  2         10  
7 2     2   290 use strict 'subs', 'vars';
  2         24  
  2         299  
8              
9             my %common_args = (
10             format => {
11             schema => ['str*', match=>qr/\A\w+(::\w+)*\z/],
12             req => 1,
13             pos => 0,
14             },
15             formatter_args => {
16             schema => 'hash*',
17             },
18             );
19              
20             my %gen_formatter_args = (
21             %common_args,
22             source => {
23             summary => 'If set to true, will return formatter source code string'.
24             ' instead of compiled code',
25             schema => 'bool',
26             },
27             );
28              
29             1;
30             # ABSTRACT: Common stuffs for Data::Sah::Format and Data::Sah::FormatJS
31              
32             __END__
33              
34             =pod
35              
36             =encoding UTF-8
37              
38             =head1 NAME
39              
40             Data::Sah::FormatCommon - Common stuffs for Data::Sah::Format and Data::Sah::FormatJS
41              
42             =head1 VERSION
43              
44             This document describes version 0.003 of Data::Sah::FormatCommon (from Perl distribution Data-Sah-Format), released on 2017-07-10.
45              
46             =head1 HOMEPAGE
47              
48             Please visit the project's homepage at L<https://metacpan.org/release/Data-Sah-Format>.
49              
50             =head1 SOURCE
51              
52             Source repository is at L<https://github.com/perlancar/perl-Data-Sah-Format>.
53              
54             =head1 BUGS
55              
56             Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah-Format>
57              
58             When submitting a bug or request, please include a test-file or a
59             patch to an existing test-file that illustrates the bug or desired
60             feature.
61              
62             =head1 AUTHOR
63              
64             perlancar <perlancar@cpan.org>
65              
66             =head1 COPYRIGHT AND LICENSE
67              
68             This software is copyright (c) 2017, 2016 by perlancar@cpan.org.
69              
70             This is free software; you can redistribute it and/or modify it under
71             the same terms as the Perl 5 programming language system itself.
72              
73             =cut