NAME

JMAP::Tester::Role::Result - the kind of thing that you get back for a request

VERSION

version 0.103

OVERVIEW

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 a response_payload method.

PERL VERSION

This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.

METHODS

assert_successful

This method returns the result if it's a success and otherwise aborts.

assert_successful_set

$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.

assert_single_successful_set

$result->assert_single_successful_set($name);

This method is equivalent to:

$result->assert_successful->single_sentence($name)->as_set->assert_no_errors;

$name may be omitted, in which case the sentence name is not checked.

AUTHOR

Ricardo SIGNES <cpan@semiotic.systems>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Fastmail Pty. 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.