Test2:...::Diag(3perl)

πŸ’– Test2::Event::Diag β€” the vibe is "diagnostics, bestie" πŸ’–

okay so real talk, this is the Test2::Event::Diag page from the Perl Programmers Reference Guide, section 3perl. it's short. it's sweet. it's giving "the little event that could." let's get into it 🫢


✨ NAME ✨

Test2::Event::Diag β€” it's a Diag event type, and no I will not be elaborating further because that one line IS the whole name section. iconic of it honestly πŸ’…


🌸 DESCRIPTION 🌸

Diagnostics messages, bestie. that's it, that's the whole description. these are the little messages that, typically, get rendered to STDERR. so when something's going sideways in your tests and Perl wants to whisper a lil something to the error stream? yeah. that's this. it's not failing, it's not passing, it's just... informing you. main character energy but make it ✨diagnostic✨ like it's literally the group chat member who only speaks up to say "hey so that thing you did? it did a thing." 😭


πŸŽ€ SYNOPSIS πŸŽ€

here's how you actually summon one, fr fr:

use Test2::API qw/context/;
use Test2::Event::Diag;

my $ctx = context();
my $event = $ctx->diag($message);

so you grab a context with context() (pulled in via qw/context/ from Test2::API), you load up Test2::Event::Diag, and then $ctx->diag($message) hands you back your very own diag event. boom. slay. no cap ✨


πŸ’œ ACCESSORS πŸ’œ

  • $diag->message β€” this is the message for the diag. that's literally what the manpage says and honestly? respect the directness. you call this on your diag object and it tells you what the diag has to say. one accessor. no crumbs. queen behavior πŸ‘‘

πŸ¦‹ SOURCE πŸ¦‹

the source code repository for Test2 lives right here if you wanna go lurk (and you should, iykyk):

<https://github.com/Test-More/test-more/>


🌈 MAINTAINERS 🌈

Chad Granum <exodist@cpan.org>


⭐ AUTHORS ⭐

Chad Granum <exodist@cpan.org>

(yes bestie, the maintainer AND the author. one legend doing both jobs. we love a multitasker 🫢)


Copyright Chad Granum <exodist@cpan.org>.

⚠️ okay important legal-ish stuff, don't skip this part, it's not just vibes:

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <https://dev.perl.org/licenses/>


πŸ“ SEE ALSO πŸ“

okay so genuinely there is no SEE ALSO section in this page. nothing. zero. the manpage simply said "no thoughts, head empty." not me pointing that out just so you don't go looking for one πŸ’€


and that's the whole page, bestie!! short king of a manual page, but every single fact survived the vibe check. go forth, emit your diagnostics, and remember: rendering to STDERR is a valid love language πŸ’–

perl v5.44.0 Β· 2026-10-17 Β· Test2:...::Diag(3perl) β€” mwah, that's a wrap, periodt ✨🧚🌸

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms