1Dist::Zilla::Chrome::TeUsste(r3)Contributed Perl DocumenDtiastti:o:nZilla::Chrome::Test(3)
2
3
4

NAME

6       Dist::Zilla::Chrome::Test - the chrome used by Dist::Zilla::Tester
7

VERSION

9       version 6.017
10

ATTRIBUTES

12   response_for
13       The response_for attribute (which exists only in the Test chrome) is a
14       hashref that lets you specify the answer to questions asked by
15       "prompt_str" or "prompt_yn".  The key is the prompt string.  If the
16       value is a string, it is returned every time that question is asked.
17       If the value is an arrayref, the first element is shifted off and
18       returned every time the question is asked.  If the arrayref is empty
19       (or the prompt is not listed in the hash), the default answer (if any)
20       is returned.
21
22       Since you can't pass arguments to the Chrome constructor, response_for
23       is initialized to an empty hash, and you can add entries after
24       construction with the "set_response_for" method:
25
26         $chrome->set_response_for($prompt => $response);
27

AUTHOR

29       Ricardo SIGNES 😏 <rjbs@cpan.org>
30
32       This software is copyright (c) 2020 by Ricardo SIGNES.
33
34       This is free software; you can redistribute it and/or modify it under
35       the same terms as the Perl 5 programming language system itself.
36
37
38
39perl v5.32.0                      2020-11-03      Dist::Zilla::Chrome::Test(3)
Impressum