| 1 |
Source: libplack-test-anyevent-perl |
| 2 |
Section: perl |
| 3 |
Build-Depends: |
| 4 |
debhelper-compat (= 13), |
| 5 |
libanyevent-perl <!nocheck>, |
| 6 |
libhttp-message-perl <!nocheck>, |
| 7 |
libmodule-build-perl, |
| 8 |
libev-perl <!nocheck>, |
| 9 |
libevent-perl <!nocheck>, |
| 10 |
libglib-perl <!nocheck>, |
| 11 |
libplack-perl <!nocheck>, |
| 12 |
libtest-class-perl <!nocheck>, |
| 13 |
perl, |
| 14 |
Maintainer: Debian Perl Group <[email protected]> |
| 15 |
Uploaders: |
| 16 |
Jonas Smedegaard <[email protected]>, |
| 17 |
Standards-Version: 4.7.3 |
| 18 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libplack-test-anyevent-perl.git |
| 19 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libplack-test-anyevent-perl |
| 20 |
Homepage: https://github.com/hoelzro/plack-test-anyevent |
| 21 |
Testsuite: autopkgtest-pkg-perl |
| 22 |
|
| 23 |
Package: libplack-test-anyevent-perl |
| 24 |
Architecture: all |
| 25 |
Depends: |
| 26 |
libanyevent-perl, |
| 27 |
libplack-perl, |
| 28 |
${misc:Depends}, |
| 29 |
${perl:Depends}, |
| 30 |
Description: run Plack::Test on AnyEvent-based PSGI applications |
| 31 |
Plack::Test::AnyEvent allows you to easily test |
| 32 |
your AnyEvent-based PSGI applications. |
| 33 |
Normally, |
| 34 |
Plack::Test::MockHTTP or Plack::Test::Server work fine for this, |
| 35 |
but this implementation comes in handy |
| 36 |
when you'd like to test your streaming results as they come in, |
| 37 |
or if your application uses long-polling. |
| 38 |
For non-streaming requests, |
| 39 |
you can use this module exactly like Plack::Test::MockHTTP; |
| 40 |
otherwise, you can set up a content handler and call $res->recv. |
| 41 |
The event loop will then run |
| 42 |
until the PSGI application closes its writer handle |
| 43 |
or until your test client calls send on the response. |