"Fossies" - the Fresh Open Source Software Archive

Member "mod_perl-2.0.11/t/response/TestAPI/show.pm" (5 Oct 2019, 553 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 source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "show.pm": 2.0.8_vs_2.0.9.

    1 # please insert nothing before this line: -*- mode: cperl; cperl-indent-level: 4; cperl-continued-statement-offset: 4; indent-tabs-mode: nil -*-
    2 package TestAPI::show;
    3 
    4 use strict;
    5 use warnings FATAL => 'all';
    6 
    7 use Apache::Test;
    8 use Apache::TestUtil;
    9 
   10 use Apache2::MPM ();
   11 use Apache2::Const -compile => 'OK';
   12 
   13 sub handler {
   14     my $r = shift;
   15 
   16     plan $r, tests => 1;
   17 
   18     my $mpm = Apache::Test::config->{server}->{mpm};
   19 
   20     ok t_cmp(Apache2::MPM->show(),
   21              qr!$mpm!i,
   22              'Apache2::MPM->show()');
   23 
   24     Apache2::Const::OK;
   25 }
   26 
   27 1;