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.031
10

PERL VERSION

12       This module should work on any version of perl still receiving updates
13       from the Perl 5 Porters.  This means it should work on any version of
14       perl released in the last two to three years.  (That is, if the most
15       recently released version is v5.40, then this module should work on
16       both v5.40 and v5.38.)
17
18       Although it may work on older versions of perl, no guarantee is made
19       that the minimum required version will not be increased.  The version
20       may be increased for any reason, and there is no promise that patches
21       will be accepted to lower the minimum required perl.
22

ATTRIBUTES

24   response_for
25       The response_for attribute (which exists only in the Test chrome) is a
26       hashref that lets you specify the answer to questions asked by
27       "prompt_str" or "prompt_yn".  The key is the prompt string.  If the
28       value is a string, it is returned every time that question is asked.
29       If the value is an arrayref, the first element is shifted off and
30       returned every time the question is asked.  If the arrayref is empty
31       (or the prompt is not listed in the hash), the default answer (if any)
32       is returned.
33
34       Since you can't pass arguments to the Chrome constructor, response_for
35       is initialized to an empty hash, and you can add entries after
36       construction with the "set_response_for" method:
37
38         $chrome->set_response_for($prompt => $response);
39

AUTHOR

41       Ricardo SIGNES 😏 <cpan@semiotic.systems>
42
44       This software is copyright (c) 2023 by Ricardo SIGNES.
45
46       This is free software; you can redistribute it and/or modify it under
47       the same terms as the Perl 5 programming language system itself.
48
49
50
51perl v5.36.1                      2023-11-21      Dist::Zilla::Chrome::Test(3)
Impressum