"Fossies" - the Fresh Open Source Software Archive

Member "mod_perl-2.0.11/Apache-Test/t/more/all.t" (5 Oct 2019, 779 Bytes) of package /linux/www/apache_httpd_modules/mod_perl-2.0.11.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # skip all the Test::More tests if Test::More is
    2 # not of a sufficient version;
    3 
    4 use strict;
    5 use warnings FATAL => 'all';
    6 
    7 use Apache::Test;
    8 
    9 plan tests => 1, need need_min_module_version(qw(Test::More 0.48_01)),
   10     need_module('mod_perl.c');
   11 
   12 ok 1;
   13 
   14 
   15 # the t/more/ directory is testing a few things.
   16 #
   17 # first, it is testing that the special
   18 #    Apache::Test qw(-withtestmore);
   19 # import works, which allows Apache::Test to use
   20 # Test::More as the backend (in place of Test.pm)
   21 # for server-side tests.
   22 #
   23 # secondly, it is testing that we can intermix
   24 # scripts that use Test.pm and Test::More as the
   25 # backend, which was a bug that needed to be worked
   26 # around in early implementations of -withtestmore.
   27 # hence the reason for the specific ordering of the
   28 # tests in t/more/.