| 1 |
NAME |
| 2 |
|
| 3 |
Test::Future::IO::Impl - acceptance tests for Future::IO |
| 4 |
implementations |
| 5 |
|
| 6 |
SYNOPSIS |
| 7 |
|
| 8 |
use Test::More; |
| 9 |
use Test::Future::IO::Impl; |
| 10 |
|
| 11 |
use Future::IO; |
| 12 |
use Future::IO::Impl::MyNewImpl; |
| 13 |
|
| 14 |
run_tests 'sleep'; |
| 15 |
|
| 16 |
done_testing; |
| 17 |
|
| 18 |
DESCRIPTION |
| 19 |
|
| 20 |
This module contains a collection of acceptance tests for |
| 21 |
implementations of Future::IO. |
| 22 |
|
| 23 |
FUNCTIONS |
| 24 |
|
| 25 |
run_tests |
| 26 |
|
| 27 |
run_tests @suitenames; |
| 28 |
|
| 29 |
Runs a collection of tests against Future::IO. It is expected that the |
| 30 |
caller has already loaded the specific implementation module to be |
| 31 |
tested against before this function is called. |
| 32 |
|
| 33 |
TEST SUITES |
| 34 |
|
| 35 |
The following test suite names may be passed to the "run_tests" |
| 36 |
function: |
| 37 |
|
| 38 |
accept |
| 39 |
|
| 40 |
Tests the Future::IO->accept method. |
| 41 |
|
| 42 |
connect |
| 43 |
|
| 44 |
Tests the Future::IO->connect method. |
| 45 |
|
| 46 |
poll |
| 47 |
|
| 48 |
Since version 0.17. |
| 49 |
|
| 50 |
Tests the Future::IO->poll method. |
| 51 |
|
| 52 |
recv, recvfrom |
| 53 |
|
| 54 |
Since version 0.15. |
| 55 |
|
| 56 |
Tests the Future::IO->recv and Future::IO->recvfrom methods. |
| 57 |
|
| 58 |
send |
| 59 |
|
| 60 |
Since version 0.15. |
| 61 |
|
| 62 |
Tests the Future::IO->send method. |
| 63 |
|
| 64 |
sleep |
| 65 |
|
| 66 |
Tests the Future::IO->sleep and Future::IO->alarm methods. |
| 67 |
|
| 68 |
The two methods are combined in one test suite as they are very |
| 69 |
similar, and neither is long or complicated. |
| 70 |
|
| 71 |
read, sysread |
| 72 |
|
| 73 |
Tests the Future::IO->sysread or Future::IO->sysread method. |
| 74 |
|
| 75 |
These two test suites are identical other than the name of the method |
| 76 |
they invoke. The two exist because of the method rename that happened |
| 77 |
at Future::IO version 0.17. |
| 78 |
|
| 79 |
write, syswrite |
| 80 |
|
| 81 |
Tests the Future::IO->write or Future::IO->syswrite method. |
| 82 |
|
| 83 |
These two test suites are identical other than the name of the method |
| 84 |
they invoke. The two exist because of the method rename that happened |
| 85 |
at Future::IO version 0.17. |
| 86 |
|
| 87 |
waitpid |
| 88 |
|
| 89 |
Tests the Future::IO->waitpid method. |
| 90 |
|
| 91 |
AUTHOR |
| 92 |
|
| 93 |
Paul Evans <[email protected]> |
| 94 |
|