Test::S...llection(3)
π NAME π
Test::Smoke::App::AppOptionCollection β bestie, it's literally just a collection of AppOption objects. That's it, that's the whole gig. π
(It lives in section 3 of the User Contributed Perl Documentation, in case you were wondering where to find her. π¦)
β¨ DESCRIPTION β¨
okay so picture this: you've got a bunch of Test::Smoke::App::AppOption objects and nowhere cute to put them. Enter AppOptionCollection. She holds them. She hands them back. She's the friend group of data structures. π«Ά
Let's go method by method, no skipping, periodt.
πΈ Test::Smoke::App::AppOptionCollection->new()
The constructor, the origin story, the main character. β¨
Arguments
An optional list of Test::Smoke::App::AppOption objects. Optional!! So you can pass zero, or a whole squad. Your call, queen. π
Returns
An instatiated object. (Yeah, that spelling is the source's, not mine, I would never π β the object itself is fully alive and thriving tho.)
Exceptions
None. Not a single one. So chill. π
πΈ $collection->add(@arguments)
Adds the Getopt::Long option and its default to the collection. She also adds the Test::Smoke::App::AppOption-show_helptext()> β yes, that's written exactly like that in the source, I am not touching it, no cap π β to the running helptext variable.
Arguments
A list of Test::Smoke::App::AppOption objects.
Returns
The object. She gives herself back so you can chain. Iconic behavior, honestly. π
Exceptions
None.
πΈ $collection->add_helptext($string)
Adds a string to the currently build up helptext variable. (And "build up" is the original's wording too, I'm just the messenger π§)
πΈ $collection->options_with_default()
Arguments
None
Returns
A hasref to a struct with only the defaults set from object construction. (Again: source spelling, I'm being faithful, don't come for me π)
πΈ $collection->options_for_cli()
Arguments
None
Returns
A hashref with options that have a CODEref as default.
Exceptions
None
πΈ $collection->all_options()
Arguments
None.
Returns
A hashref with all options and theire coded default.
Exceptions
None.
π COPYRIGHT π
(c) 2002-2013, Abe Timmerman <abeltje@cpan.org> All rights reserved.
With contributions from Jarkko Hietaniemi, Merijn Brand, Campo Weijerman, Alan Burlison, Allen Smith, Alain Barbet, Dominic Dunlop, Rich Rauenzahn, David Cantrell. Absolute legends, every single one. π
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See:
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Like, fr fr, it comes as-is. π€
and that's the whole page, bestie π this was perl v5.42.0, dated 2025-07-25, and it's still Test::S...llection(3) to the very end. go forth and collect your options. πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Test-Smoke 1.84-2.fc43 Β· 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