#############################################################################
#
# Author: Chris Weyl (cpan:RSRCHBOY),
# Company: No company, personal work
# Created: 02/02/2009 11:41:15 PM PST
#
# Copyright (c) 2009 Chris Weyl
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
#############################################################################
=head1 NAME
no_smart_comments.t - make sure we don't still "use Smart::Comments" somewhere
=head1 DESCRIPTION
This test ensures we don't release any Smart::Comments out there.
=head1 TESTS
This module defines the following tests.
=cut
use strict;
use warnings;
use English qw{ -no_match_vars }; # Avoids regex performance penalty
use File::Find::Rule;
use FindBin;
use Module::ScanDeps;
use Test::More;
# debugging...
#use Smart::Comments;
my @files = File::Find::Rule
->file
->name('*.pm')
->in("$FindBin::Bin/../../lib")
;
plan tests => scalar @files;
for my $file (@files) {
my $href = scan_deps(files => [ $file ], recurse => 0);
# ## $href
is exists $href->{'Smart/Comments.pm'} => q{}, "$file w/o Smart::Comments";
}
__END__
=head1 CONFIGURATION AND ENVIRONMENT
A full explanation of any configuration system(s) used by the module,
including the names and locations of any configuration files, and the
meaning of any environment variables or properties that can be set. These
descriptions must also include details of any configuration language used.
=head1 DEPENDENCIES
A list of all the other modules that this module relies upon, including any
restrictions on versions, and an indication whether these required modules are
part of the standard Perl distribution, part of the module's distribution,
or must be installed separately.
=head1 INCOMPATIBILITIES
A list of any modules that this module cannot be used in conjunction with.
This may be due to name conflicts in the interface, or competition for
system or program resources, or due to internal limitations of Perl
(for example, many modules that use source code filters are mutually
incompatible).
=head1 SEE ALSO
L
=head1 AUTHOR
Chris Weyl
=head1 LICENSE AND COPYRIGHT
Copyright (c) 2009 Chris Weyl
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the
Free Software Foundation, Inc.
59 Temple Place, Suite 330
Boston, MA 02111-1307 USA
=cut