Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

perl::critic::policy::testinganddebugging::requiretestlabels(3) [centos man page]

Perl::Critic::Policy::TestingAndDebugging::RequireTestLaUser(Contributed Perl DocumPerl::Critic::Policy::TestingAndDebugging::RequireTestLabels(3)

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.16.3 2014-06-09 Perl::Critic::Policy::TestingAndDebugging::RequireTestLabels(3)

Check Out this Related Man Page

Perl::Critic::Policy::TestingAndDebugging::RequireUseStrUser3Contributed Perl DocuPerl::Critic::Policy::TestingAndDebugging::RequireUseStrict(3pm)

NAME
Perl::Critic::Policy::TestingAndDebugging::RequireUseStrict - Always "use strict". AFFILIATION
This Policy is part of the core Perl::Critic distribution. DESCRIPTION
Using strictures is probably the single most effective way to improve the quality of your code. This policy requires that the 'use strict' statement must come before any other statements except "package", "require", and other "use" statements. Thus, all the code in the entire package will be affected. There are special exemptions for Moose, Moose::Role, and Moose::Util::TypeConstraints because they enforces strictness; e.g. 'use Moose' is treated as equivalent to 'use strict'. The maximum number of violations per document for this policy defaults to 1. CONFIGURATION
If you take make use of things like Moose::Exporter, you can create your own modules that import the strict pragma into the code that is "use"ing them. There is an option to add to the default set of pragmata and modules in your .perlcriticrc: "equivalent_modules". [TestingAndDebugging::RequireUseStrict] equivalent_modules = MooseX::My::Sugar SEE ALSO
Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict 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::RequireUseStrict(3pm)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Test Help!!!!!!

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)
Discussion started by: Xskwizitboi
1 Replies

2. Programming

to judge a file

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)
Discussion started by: jeter
2 Replies

3. UNIX for Dummies Questions & Answers

What am I doing wrong?

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)
Discussion started by: demonpants
7 Replies

4. AIX

Test command

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)
Discussion started by: JWilliams
2 Replies

5. Programming

Switching over to C++

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)
Discussion started by: Ribosome
23 Replies

6. Red Hat

Perl problems in RHEL 5.X

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)
Discussion started by: nixhead
1 Replies

Featured Tech Videos