The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

TB2::NoWarnings - Test there are no warnings using TB2.

SYNOPSIS

    use TB2::NoWarnings;
    use Test::Simple tests => 2;

    ok(1);
    ok(2);

    warn "Blah";  # failure

DESCRIPTION

This demonstrates how to write a test library which catches

CAVEATS

It must be run before the plan is set. It should throw an error if the plan is already set, but it doesn't.