Dist::Z...me::Test(3)
π Dist::Zilla::Chrome::Test π
okay bestie, welcome to the manual page for <pink>Dist::Zilla::Chrome::Test</pink> β that's the <cyan>Dist::Z...me::Test(3)</cyan> page you just pulled up, and yeah, the name is literally the chrome used by Dist::Zilla::Tester. That's it. That's the whole vibe. It's the fake little chrome layer that your tests get to boss around instead of talking to a real human. π
β¨ VERSION β¨
version 6.040 β that's the one, that's the era we're living in. π¦
πΈ PERL VERSION πΈ
so this module is expected to work on any version of perl that's still receiving updates from the Perl 5 Porters. Which basically means: anything the perl people dropped in the last two to three years. Like, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38. Slay, backwards compatible, we love to see it. π
ngl, it might work on older perls too, but no guarantee that the minimum required version won't get raised. It can be raised for literally any reason, and there is no promise that patches lowering the minimum required perl will be accepted. So don't come for them with that PR, bestie. π
π ATTRIBUTES π
π«Ά response_for
THE main character attribute. β¨
The response_for attribute β which only exists in the Test chrome, iykyk β is a <purple>hashref</purple> that lets you specify the answer to questions asked by "prompt_str" or "prompt_yn". π£οΈ
- the key is the prompt string π
- if the value is a string, it gets returned every single time that question is asked π¬
- if the value is an arrayref, the first element is shifted off and returned every time the question is asked β so it drains as it goes π
- if the arrayref is empty, or the prompt isn't listed in the hash at all, then the default answer (if there even is one) gets returned π
and here's the little snag: you can't pass arguments to the Chrome constructor, so response_for gets initialized to an empty hash, and you add entries after construction using the set_response_for method:
$chrome->set_response_for($prompt => $response);
there's no other way in, that's the door, use the door. πͺβ¨
π AUTHOR π
Ricardo SIGNES π <cpan@semiotic.systems>
(they put the smirk IN the manpage, iconic behavior honestly)
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π
and that's the whole page, bestie!! no cap!! π
sign-off time: this was perl v5.42.3, dated 2026-10-19, and the page is Dist::Z...me::Test(3) β you're all caught up, go write some tests, periodt. π
β¨π¦
π¦ where this page comes from
- fedora 44: perl-Dist-Zilla 6.040-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms