perl::critic::policy::testinganddebugging::requiretestlabels(3pm) [debian man page]
Perl::Critic::Policy::TestingAndDebugging::RequireTestLaUser(Contributed Perl DocPerl::Critic::Policy::TestingAndDebugging::RequireTestLabels(3pm)NAME
Perl::Critic::Policy::TestingAndDebugging::RequireTestLabels - Tests should all have labels.
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Most Perl modules with regression tests use Test::More as infrastructure for writing and running those tests. It has an easy, procedural
syntax for writing comparisons of results to expectations.
Most of the Test::More functions allow the programmer to add an optional label that describes what each test is trying to judge. When a
test goes wrong, these labels are very useful for quickly determining where the problem originated.
This policy enforces that all Test::More functions have labels where applicable. This only applies to code that has a "use Test::More" or
"require Test::More" declaration (see below to add more test modules to the list).
CONFIGURATION
A list of additional modules to require label parameters be passed to their methods can be specified with the "modules" option. The list
must consist of whitespace-delimited, fully-qualified module names. For example:
[TestingAndDebugging::RequireTestLabels]
modules = My::Test::SubClass Some::Other::Module
The module list always implicitly includes Test::More.
AUTHOR
Chris Dolan <cdolan@cpan.org>
COPYRIGHT
Copyright (c) 2006-2011 Chris Dolan.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-06-07 Perl::Critic::Policy::TestingAndDebugging::RequireTestLabels(3pm)
Check Out this Related Man Page
Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrUser3Contributed Perl DocuPerl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict(3pm)NAME
Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict - Prohibit various flavors of "no strict".
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
There are good reasons for disabling certain kinds of strictures, But if you were wise enough to "use strict" in the first place, then it
doesn't make sense to disable it completely. By default, any "no strict" statement will violate this policy. However, you can configure
this Policy to allow certain types of strictures to be disabled (See "CONFIGURATION"). A bare "no strict" statement will always raise a
violation.
CONFIGURATION
The permitted strictures can be configured via the "allow" option. The value is a list of whitespace-delimited stricture types that you
want to permit. These can be "vars", "subs" and/or "refs". An example of this customization:
[TestingAndDebugging::ProhibitNoStrict]
allow = vars subs refs
SEE ALSO
Perl::Critic::Policy::TestingAndDebugging::RequireUseStrict
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT
Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module
perl v5.14.2 2012-06-07 Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict(3pm)
I have a test due in like 2 hours and I am totally stuck on a few questions, if any can help, it would be grately appreciated.
1. What command would you type to add a serial port?
2. What file specifies whether a filesystem should be mounted at boot time or not?
3. Write the command which... (1 Reply)
HI all
I am a newer learning C that I want to write a code to judge a file whether exist or not
And rename it. Maybe someone can tell me C whether has function to do it
thx (2 Replies)
I really just mess around in UNIX, for the most part, when I want to get something done. I can usually piece things together by searching for brief how-to's on Google, but the syntax errors in my following .sh file are really confusing me. I've got lots of programming experience in other places, so... (7 Replies)
Hello,
I am trying to add some tests to existing code. The code already contains some test commands. An example is as follows...
] then
Does anyone know the purpose of the double equals? I would have used a single equals sign... (2 Replies)
Hi,
We've been using a perl script to extract datas from several logs to generate a report. I've been asked to rewrite the code in C++. I want to know if it is wise to have a code in C++ and will it be more faster than Perl? (23 Replies)
Hi,
We have RHEL 5.X OS installed here, where we need few Perl modules installed. I have local copy of Perl modules in .tar.gz format. The problem is that we don't have Internet available here and it is really pain to install all the modules manually on all the servers one by one.
So can I... (1 Reply)