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

Commit

Permalink
Merge pull request #281 from trwyant/trw_diag_return_value
Browse files Browse the repository at this point in the history
Document that diag() returns false,
  • Loading branch information
exodist authored Oct 25, 2023
2 parents 64f8573 + f5486c6 commit 3577385
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit 3577385

Please sign in to comment.