Utils.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 31 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package PPIx::Utils;
2  
3 use strict;
4 use warnings;
5 use Exporter 'import';
6  
7 use PPIx::Utils::Classification ':all';
8 use PPIx::Utils::Language ':all';
9 use PPIx::Utils::Traversal ':all';
10  
11 our $VERSION = '0.002';
12  
13 our @EXPORT_OK = (
14 @PPIx::Utils::Classification::EXPORT_OK,
15 @PPIx::Utils::Language::EXPORT_OK,
16 @PPIx::Utils::Traversal::EXPORT_OK,
17 );
18  
19 our %EXPORT_TAGS = (
20 all => [@EXPORT_OK],
21 classification => [@PPIx::Utils::Classification::EXPORT_OK],
22 language => [@PPIx::Utils::Language::EXPORT_OK],
23 traversal => [@PPIx::Utils::Traversal::EXPORT_OK],
24 );
25  
26 1;
27  
28 =head1 NAME
29  
30 PPIx::Utils - Utility functions for PPI
31  
32 =head1 SYNOPSIS
33  
34 use PPIx::Utils qw(:classification :language :traversal);
35  
36 =head1 DESCRIPTION
37  
38 C<PPIx::Utils> is a collection of utility functions for working with L<PPI>
39 documents. The functions are organized into submodules, and may be imported
40 from the appropriate submodule or via this module.
41  
42 These functions were originally from L<Perl::Critic::Utils> and related
43 modules, and have been split off to this distribution for use outside of
44 L<Perl::Critic>.
45  
46 =head1 MODULES
47  
48 The import tag C<:all> will import the functions from all modules listed below.
49  
50 =head2 L<PPIx::Utils::Classification>
51  
52 Functions related to classification of L<PPI> elements. All functions from this
53 module can be imported with the import tag C<:classification>.
54  
55 =head2 L<PPIx::Utils::Language>
56  
57 Functions related to the Perl language. All functions from this module can be
58 imported with the import tag C<:language>.
59  
60 =head2 L<PPIx::Utils::Traversal>
61  
62 Functions related to traversal of L<PPI> documents. All functions from this
63 module can be imported with the import tag C<:traversal>.
64  
65 =head1 BUGS
66  
67 Report any issues on the public bugtracker.
68  
69 =head1 AUTHOR
70  
71 Dan Book <dbook@cpan.org>
72  
73 Code originally from L<Perl::Critic::Utils> by Jeffrey Ryan Thalhammer
74 <jeff@imaginative-software.com>, L<Perl::Critic::Utils::PPI> +
75 L<Perl::Critic::Utils::Perl> + L<PPIx::Utilities::Node> by Elliot Shank
76 <perl@galumph.com>, and L<PPIx::Utilities::Statement> by
77 Thomas R. Wyant, III <wyant@cpan.org>
78  
79 =head1 COPYRIGHT AND LICENSE
80  
81 This software is copyright (c) 2005-2011 Imaginative Software Systems,
82 2007-2011 Elliot Shank, 2009-2010 Thomas R. Wyant, III, 2017 Dan Book.
83  
84 This is free software; you can redistribute it and/or modify it under
85 the same terms as the Perl 5 programming language system itself.
86  
87 =head1 SEE ALSO
88  
89 L<PPI>, L<Perl::Critic::Utils>, L<PPIx::Utilities>