Test::S...er::Base(3)

πŸ“¦
version 1.84 Β· 2 versions
, in fedora 43

πŸ’– Test::Smoke::Mailer::Base πŸ’–

okay so bestie, we're looking at Test::Smoke::Mailer::Base(3) from the User Contributed Perl Documentation, and it's giving very much "I'm the parent class and everyone else is my child" energy. Let's get into it 🫢


✨ NAME ✨

Test::Smoke::Mailer::Base β€” the baseclass for Mailers. that's it, that's the whole vibe. it's the blueprint, the mother of all mailers, the main character that other mailer classes inherit from πŸ‘‘


🌸 DESCRIPTION 🌸

πŸŽ€ Test::Smoke::Mailer::Base->new()

this is the constructor!! it's how you make a new mailer object, literally the birth of the mailer. no cap, every mailer starts here πŸ’…

πŸ¦‹ $mailer->fetch_report( )

okay so fetch_report() does the little errand run: it reads mktest.rpt from "{ddir}" and then hands you back the subject line for the mail-message. it's fetching AND formatting, a multitasking icon ✨

🌈 $mailer->error( )

error() just returns the value of $mailer->{error}. simple, honest, no drama. it tells you what went wrong and we respect that πŸ™ˆ

πŸ’œ $self->_get_cc( $subject )

so _get_cc() is the implementation of the --ccp5p_onfail option. the way that it works is it peeks at the subject to figure out if the smoke FAILed, and if it did, it adds the perl5-porters mailing-list to the Cc: field β€” but ONLY unless it's already hanging out in To: or Cc:, because we are not about to double-cc anyone, that's embarrassing 😭

the new behaviour is to only return Cc: on fail. and how does it know? it's determined by the new global regex kept in $Test::Smoke::Mailer::NOCC_RE. periodt πŸ’…


(c) 2002-2013, All rights reserved.

  • Abe Timmerman <abeltje@cpan.org>

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. fr fr, no promises, use at your own risk bestie πŸ’€

and that's the whole page!! this beauty came to you via perl v5.42.0, dated 2025-07-25, under the manual name Test::S...er::Base(3) β€” mwah, slay, go read some more docs πŸ’–βœ¨

πŸ“¦ where this page comes from