perl-Test-Compiles - tests if perl can compile a string of code

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Test-Compiles
Package version 0.001
Package release alt1
Package architecture noarch
Package type rpm
Installed size 25.61 KB
Download size 25.61 KB
Official Mirror
Test::Compiles exports two functions to allow you to check whether a
string of code can be compiled by perl without errors. It doesn't check
whether it can be *executed*.
Note that Perl code can execute arbitrary instructions as part of its
compilation (e.g. in a `BEGIN { ... }' block), so don't pass
untrusted strings to these test functions.
=item `compiles $code, $message, %options'
=item `compiles $code, %options'
=item `compiles $code, $message'
=item `compiles $code'
This test passes if `$code' can be compiled.
Valid options are:
=item * `strict': boolean to indicate whether code should be compiled
with `use strict'. Enabled by default.
=item * `warnings': boolean to indicate whether code should be
compiled with `use warnings FATAL => 'all''. Disabled by default.
=item * `package': package that the code should be compiled in.
Defaults to the caller.
=item * `prelude': a string of Perl code to prepend to `$code'.
Defaults to `$Test::Compiles::PRELUDE', which is (by default) an
empty string.
=item * `message': an alternative to specifying `$message'.
=item `doesnt_compile $code, $message, %options'
=item `doesnt_compile $code, %options'
=item `doesnt_compile $code, $message'
=item `doesnt_compile $code'
This test passes if `$code' cannot be compiled. It accepts the
same options.
This module defines a package variable `$Test::Compiles::PRELUDE'
which can be used to, for example, load pragmata like the indirect manpage or
the bareword::filehandles manpage.


Package Version Architecture Repository
perl-Test-Compiles - - -


Name Value
/usr/share/perl5 -
perl(Exporter/ >= 1.0
perl(Test/ >= 0.960
rpmlib(PayloadIsLzma) -


Name Value
perl(Test/ = 0.001
perl-Test-Compiles = 0.001-alt1


Type URL
Binary Package perl-Test-Compiles-0.001-alt1.noarch.rpm
Source Package perl-Test-Compiles-0.001-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Test-Compiles rpm package:
    # sudo apt-get install perl-Test-Compiles



See Also

Package Description
perl-Test-Conditions-0.83-alt1.noarch.rpm test multiple conditions across a large data structure or list in a simple and compact way
perl-Test-Config-System-0.63-alt1.noarch.rpm System configuration related unit tests
perl-Test-Consul-0.012-alt1.noarch.rpm Run a consul server for testing
perl-Test-Continuous-0.74-alt1.noarch.rpm Run your test suite continuously when developing
perl-Test-Continuous-scripts-0.74-alt1.noarch.rpm Test-Continuous scripts
perl-Test-Cookbook-0.05.2-alt1.noarch.rpm Write your tests as cookbooks
perl-Test-Core-0.0200-alt1.noarch.rpm Modern Perl testing with a single import
perl-Test-Corpus-Audio-MPD-1.120990-alt3_9.noarch.rpm Automate launching of fake mdp for testing purposes
perl-Test-Count-0.0902-alt1_2.noarch.rpm A standalone command line
perl-Test-Crontab-Format-0.02-alt1.noarch.rpm Check crontab format validity
perl-Test-Cucumber-Tiny-0.64-alt1.noarch.rpm Cucumber Testing Framework
perl-Test-Cukes-0.10-alt1.noarch.rpm A BBD test tool inspired by Cucumber
perl-Test-DB-Shared-0.004-alt1.noarch.rpm Share DB cluster instance accross processes for faster tests
perl-Test-DBIC-0.01003-alt1.noarch.rpm Facilitates Automated Testing for DBIx::Class
perl-Test-DBIC-ExpectedQueries-1.011-alt1.noarch.rpm Test that only expected DBIx::Class queries are run