Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

test::vars(3) [centos man page]

Test::Vars(3)						User Contributed Perl Documentation					     Test::Vars(3)

NAME
Test::Vars - Detects unused variables VERSION
This document describes Test::Vars version 0.005. SYNOPSIS
use Test::Vars; all_vars_ok(); # check libs in MANIFEST DESCRIPTION
Test::Vars finds unused variables in order to keep the source code tidy. INTERFACE
Exported all_vars_ok(%args) Tests libraries in your distribution with %args. libraries are collected from the MANIFEST file. If you want to ignore variables, for example $foo, you can tell it to the test routines: "ignore_vars => { '$foo' => 1 }" "ignore_vars => [qw($foo)]" "ignore_if => sub{ $_ eq '$foo' }" Note that $self will be ignored by default unless you pass explicitly "{ '$self' => 0 }" to "ignore_vars". vars_ok($lib, %args) Tests $lib with %args. See "all_vars_ok". MECHANISM
"Test::Vars" is similar to a part of "Test::Perl::Critic",but the mechanism is different. While "Perl::Critic", the backend of "Test::Perl::Critic", scans the source code as texts, this modules scans the compiled opcode (or AST: abstract syntax tree) using the "B" module. See also "B" and its submodules. CONFIGURATION
"TEST_VERBOSE = 1 | 2 " shows the way this module works. CAVEATS
https://rt.cpan.org/Ticket/Display.html?id=60018 https://rt.cpan.org/Ticket/Display.html?id=82411 DEPENDENCIES
Perl 5.10.0 or later. BUGS
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. SEE ALSO
Perl::Critic warnings::unused B Test::Builder::Module AUTHOR
Goro Fuji (gfx) <gfuji(at)cpan.org> LICENSE AND COPYRIGHT
Copyright (c) 2010, Goro Fuji (gfx). All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic for details. perl v5.16.3 2014-06-10 Test::Vars(3)

Check Out this Related Man Page

Test::Valgrind::Action::Test(3pm)			User Contributed Perl Documentation			 Test::Valgrind::Action::Test(3pm)

NAME
Test::Valgrind::Action::Test - Test that an analysis didn't generate any error report. VERSION
Version 1.13 DESCRIPTION
This action uses "Test::Builder" to plan and pass or fail tests according to the reports received. METHODS
This class inherits Test::Valgrind::Action and Test::Valgrind::Action::Captor. "new diag => $diag, extra_tests => $extra_tests, ..." Your usual constructor. When $diag is true, the original output of the command and the error reports are intermixed as diagnostics. $extra_tests specifies how many extraneous tests you want to plan in addition to the default ones. Other arguments are passed straight to "Test::Valgrind::Action->new". "diag" Read-only accessor for the "diag" option. "kinds" Returns the list of all the monitored report kinds. SEE ALSO
Test::Valgrind, Test::Valgrind::Action. AUTHOR
Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>. You can contact me by mail or on "irc.perl.org" (vincent). BUGS
Please report any bugs or feature requests to "bug-test-valgrind at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc Test::Valgrind::Action::Test COPYRIGHT &; LICENSE Copyright 2009,2010,2011 Vincent Pit, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.4 2011-08-25 Test::Valgrind::Action::Test(3pm)
Man Page