NAME
Test::Builder2::BlackHole - Goes Nowhere Does Nothing
SYNOPSIS
use Test::Builder2::BlackHole;
my $blackhole = Test::Builder2::BlackHole->new;
$blackhole->whatever;
$blackhole->destroy_the_universe( pretty => "please" );
DESCRIPTION
This is an object that accepts any method with any argument and returns another BlackHole object. This allows chained black holes like...
$thing->what->huh->oh;
BlackHole objects are always boolean false so code like this DTRT.
if( $thing->what ) { ... }
You'd use this if you have an optional object, but don't want everyone to check if they have it. For example, a formatter. This may turn out to be a really bad idea.