-
-
09 Dec 2018 20:21:16 UTC
- Distribution: Test-CleanNamespaces
- Module version: 0.24
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (1)
- Testers (7726 / 3 / 0)
- Kwalitee
Bus factor: 2- 82.14% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (35.88KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Exporter
- File::Find
- File::Spec
- Module::Runtime
- Package::Stash
- Sub::Identify
- Test::Builder
- strict
- warnings
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- SYNOPSIS
- DESCRIPTION
- FUNCTIONS
- KNOWN ISSUES
- SEE ALSO
- SUPPORT
- AUTHOR
- CONTRIBUTORS
- COPYRIGHT AND LICENCE
NAME
Test::CleanNamespaces - Check for uncleaned imports
VERSION
version 0.24
SYNOPSIS
use strict; use warnings; use Test::CleanNamespaces; all_namespaces_clean;
DESCRIPTION
This module lets you check your module's namespaces for imported functions you might have forgotten to remove with namespace::autoclean or namespace::clean and are therefore available to be called as methods, which usually isn't want you want.
FUNCTIONS
All functions are exported by default.
namespaces_clean
namespaces_clean('YourModule', 'AnotherModule');
Tests every specified namespace for uncleaned imports. If the module couldn't be loaded it will be skipped.
all_namespaces_clean
all_namespaces_clean;
Runs "namespaces_clean" for all modules in your distribution.
find_modules
my @modules = Test::CleanNamespaces->find_modules;
Returns a list of modules in the current distribution. It'll search in
blib/
, if it exists.lib/
will be searched otherwise.builder
my $builder = Test::CleanNamespaces->builder;
Returns the
Test::Builder
used by the test functions.KNOWN ISSUES
Uncleaned imports from Mouse classes are incompletely detected, due to its lack of ability to return the correct method list -- it assumes that all subs are meant to be callable as methods unless they originated from (were imported by) one of: Mouse, Mouse::Role, Mouse::Util, Mouse::Util::TypeConstraints, Carp, Scalar::Util, or List::Util.
SEE ALSO
SUPPORT
Bugs may be submitted through the RT bug tracker (or bug-Test-CleanNamespaces@rt.cpan.org).
There is also a mailing list available for users of this distribution, at http://lists.perl.org/list/perl-qa.html.
There is also an irc channel available for users of this distribution, at
#perl
onirc.perl.org
.AUTHOR
Florian Ragwitz <rafl@debian.org>
CONTRIBUTORS
Karen Etheridge <ether@cpan.org>
Graham Knop <haarg@haarg.org>
COPYRIGHT AND LICENCE
This software is copyright (c) 2009 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Test::CleanNamespaces, copy and paste the appropriate command in to your terminal.
cpanm Test::CleanNamespaces
perl -MCPAN -e shell install Test::CleanNamespaces
For more information on module installation, please visit the detailed CPAN module installation guide.