Debian Codegraph @

xt/010_live/06_big_post.t

raw symbols SCIP
1 use strictscip-perl cpan FCGI-Client 0.09 strict/;
2 use warningsscip-perl cpan FCGI-Client 0.09 warnings/;
3 use Test::Morescip-perl cpan FCGI-Client 0.09 Test/More/;
4 use libscip-perl cpan FCGI-Client 0.09 lib/ 't/lib/';
5 use t::Internalscip-perl cpan FCGI-Client 0.09 t/Internal/;
6
7 my $client = t::Internal->newscip-perl cpan FCGI-Client 0.09 t/Internal/new().(path => 't/fcgi/big_post.fcgi');
8
9 for my $len (85_556, 1_000_000) {
10 my $chunk = "abcdefg" x $len;
11 my ( $stdout, $stderr ) = $client->requestscip-perl cpan FCGI-Client 0.09 t/Internal/request().(
12 +{
13 REQUEST_METHOD => 'GET',
14 QUERY_STRING => 'foo=bar',
15 CONTENT_TYPE => 'application/octet-stream',
16 CONTENT_LENGTH => lengthscip-perl cpan FCGI-Client 0.09 main/length().($chunk),
17 },
18 $chunk,
19 10
20 );
21 isscip-perl cpan FCGI-Client 0.09 main/is(). $stdout, "Content−Type: application/octet-stream\r\nContent-Length: @{[ length($chunk) ]}\r\n\r\n$chunk";
22 my ($x1, $x2) = $stderr =~ /len: (\d+), (\d+)\n/;
23 isscip-perl cpan FCGI-Client 0.09 main/is(). $x1, $x2;
24 isscip-perl cpan FCGI-Client 0.09 main/is(). $x1, lengthscip-perl cpan FCGI-Client 0.09 main/length().($chunk);
25 }
26
27 done_testing;