Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Document that diag() returns false, #281

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/Test2/Tools/Basic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ sub diag {
my $ctx = context();
$ctx->diag( join '', grep { defined $_ } @_ );
$ctx->release;
return 0;
}

sub note {
Expand Down Expand Up @@ -248,6 +249,8 @@ Fire off a failing test (a single Ok event). The name and diagnostics are option
Write diagnostics messages. All items in C<@messages> will be joined into a
single string with no separator. When using TAP, diagnostics are sent to STDERR.

Returns false, so as to preserve failure.

=item note(@messages)

Write note-diagnostics messages. All items in C<@messages> will be joined into
Expand Down