JMAP::Tester::Role::Result - the kind of thing that you get back for a request
version 0.018
This is the role consumed by the class of any object returned by JMAP::Tester's request method. Its only guarantee, for now, is an is_success method, and an http_response method.
request
is_success
http_response
This method returns the result if it's a success and otherwise aborts.
$result->assert_successful_set($name);
This method is equivalent to:
$result->assert_successful->sentence_named($name)->as_set->assert_no_errors;
$name must be provided.
$name
$result->assert_single_successful_set($name);
$result->assert_successful->single_sentence($name)->as_set->assert_no_errors;
$name may be omitted, in which case the sentence name is not checked.
Ricardo SIGNES <rjbs@cpan.org>
This software is copyright (c) 2016 by FastMail, Ltd.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install JMAP::Tester, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JMAP::Tester
CPAN shell
perl -MCPAN -e shell install JMAP::Tester
For more information on module installation, please visit the detailed CPAN module installation guide.