Job::Async::Test::Compliance - verify whether a client+worker pair conform to the current API.
use IO::Async::Loop; use Job::Async::Test::Compliance; my $loop = IO::Async::Loop->new; $loop->add( my $compliance = Job::Async::Test::Compliance->new ); eval { print "Test result: " . $compliance->test( 'memory', worker => { }, client => { }, )->get; } or do { warn "Compliance test failed: $@\n"; };
Provides a compliance test. Might be of use when writing
add_child, adopt_future, can_event, children, configure, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, new, notifier_name, parent, remove_child, remove_from_parent
Tom Molesworth <TEAM@cpan.org>
Copyright Tom Molesworth 2017. Licensed under the same terms as Perl itself.
To install Job::Async, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Job::Async
CPAN shell
perl -MCPAN -e shell install Job::Async
For more information on module installation, please visit the detailed CPAN module installation guide.