Test2::Event::Diag - Diag event type
| Use Case | Command | Description |
|---|---|---|
| Create a diagnostic event | $ctx->diag($message) | đ Create a Test2::Event::Diag object with the given message |
| Retrieve the message | $diag->message | đ Get the diagnostic message from the event |
Diagnostics messages, typically rendered to STDERR.
use Test2::API qw/context/;
use Test2::Event::Diag;
my $ctx = context();
my $event = $ctx->diag($message);
$diag->message â The message for the diag.The source code repository for Test2 can be found at http://github.com/Test-More/test-more/.
Chad Granum <exodist AT cpan.org>
Chad Granum <exodist AT cpan.org>
Copyright 2020 Chad Granum <exodist AT cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-23 07:48 @216.73.216.102
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)