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)


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