"Fossies" - the Fresh Open Source Software Archive

Member "mod_perl-2.0.11/t/filter/out_bbs_ctx.t" (5 Oct 2019, 788 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. See also the last Fossies "Diffs" side-by-side code changes report for "out_bbs_ctx.t": 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 use strict;
    3 use warnings FATAL => 'all';
    4 
    5 use Apache::Test;
    6 use Apache::TestRequest;
    7 use Apache::TestUtil;
    8 
    9 plan tests => 1;
   10 
   11 my $blocks  = 33;
   12 my $invoked = 34; # 33 bb made of data and 1 flush bucket (unbuffered print)
   13                   #  1 bb with EOS bucket
   14 my $sig = join "\n", "received $blocks complete blocks",
   15     "filter invoked $invoked times\n";
   16 my $data = "#" x $blocks . "x" x $blocks;
   17 my $expected = join "\n", $data, $sig;
   18 
   19 {
   20     # test the filtering of the mod_perl response handler
   21     my $location = '/TestFilter__out_bbs_ctx';
   22     my $response = GET_BODY $location;
   23     ok t_cmp($response, $expected, "context filter");
   24 }