Debian Codegraph @

script/test-regexp-pattern

raw
1 #!perl
2
3 use 5.010;
4 use strict;
5 use warnings;
6
7 use Getopt::Long qw(:config bundling no_ignore_case auto_help auto_version);
8 use Test::Regexp::Pattern;
9
10 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
11 our $DATE = '2022-07-24'; # DATE
12 our $DIST = 'Test-Regexp-Pattern'; # DIST
13 our $VERSION = '0.010'; # VERSION
14
15 my %opts = (
16 #exclude_packages => [],
17 test_examples => 1,
18 );
19 GetOptions(
20 #'exclude-package=s' => $opts{exclude_packages},
21 #'exclude-function=s' => $opts{exclude_functions},
22 'E' => sub { $opts{test_examples} = 0 },
23 );
24
25 regexp_patterns_in_all_modules_ok(
26 \%opts,
27 );
28
29 1;
30 # ABSTRACT: Test Regexp::Pattern patterns in all modules of your distro
31 # PODNAME: test-regexp-pattern
32
33 __END__
34
35 =pod
36
37 =encoding UTF-8
38
39 =head1 NAME
40
41 test-regexp-pattern - Test Regexp::Pattern patterns in all modules of your distro
42
43 =head1 VERSION
44
45 This document describes version 0.010 of test-regexp-pattern (from Perl distribution Test-Regexp-Pattern), released on 2022-07-24.
46
47 =head1 SYNOPSIS
48
49 In your distro directory:
50
51 % test-regexp-pattern [options]
52
53 =head1 DESCRIPTION
54
55 This script is a command-line interface for L<Test::Regexp::Pattern>'s
56 C<regexp_patterns_in_all_modules_ok()> function.
57
58 =head1 OPTIONS
59
60 =over
61
62 =item * -E
63
64 This sets C<test_examples> to 0.
65
66 =back
67
68 =head1 HOMEPAGE
69
70 Please visit the project's homepage at L<https://metacpan.org/release/Test-Regexp-Pattern>.
71
72 =head1 SOURCE
73
74 Source repository is at L<https://github.com/perlancar/perl-Test-Regexp-Pattern>.
75
76 =head1 SEE ALSO
77
78 L<Test::Regexp::Pattern>
79
80 =head1 AUTHOR
81
82 perlancar <[email protected]>
83
84 =head1 CONTRIBUTING
85
86
87 To contribute, you can send patches by email/via RT, or send pull requests on
88 GitHub.
89
90 Most of the time, you don't need to build the distribution yourself. You can
91 simply modify the code, then test via:
92
93 % prove -l
94
95 If you want to build the distribution (e.g. to try to install it locally on your
96 system), you can install L<Dist::Zilla>,
97 L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
98 Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required
99 beyond that are considered a bug and can be reported to me.
100
101 =head1 COPYRIGHT AND LICENSE
102
103 This software is copyright (c) 2022, 2020, 2018 by perlancar <[email protected]>.
104
105 This is free software; you can redistribute it and/or modify it under
106 the same terms as the Perl 5 programming language system itself.
107
108 =head1 BUGS
109
110 Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Regexp-Pattern>
111
112 When submitting a bug or request, please include a test-file or a
113 patch to an existing test-file that illustrates the bug or desired
114 feature.
115
116 =cut