Test2::Event::Diag(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay so bestie, this is Test2::Event::Diag(3), straight out of the User Contributed Perl Documentation, and it is literally the Diag event type. no cap ✨


🌸 DESCRIPTION 🌸

Diagnostics messages, typically rendered to STDERR. that's the whole vibe, and honestly? iconic. πŸ’¬


✨ SYNOPSIS ✨

here's the group-chat screenshot of how you use it:

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

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

πŸ’… ACCESSORS πŸ’…

  • $diag->message β€” the message for the diag. that's it, that's the accessor. πŸ’–

πŸ¦‹ SOURCE πŸ¦‹

The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. go peek, bestie πŸ‘€


πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

πŸŽ€ AUTHORS πŸŽ€

  • Chad Granum <exodist@cpan.org>

Copyright Chad Granum <exodist@cpan.org>.

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/>.


πŸ’– cute sign-off: this page is from perl v5.42.0, dated 2025-07-28. slay, you read the whole thing ✨🫢

πŸ“¦ where this page comes from