Acme-FSM
view release on metacpan or search on metacpan
t/TestSuite.pm view on Meta::CPAN
sub AFSMTS_diag ( @ ) {
-t STDOUT && !$ENV{QUIET} && @_ && grep $_, @_ or return;
Test::More::diag( @_ ) }
=item B<AFSMTS_dump()>
use t::TestSuite qw/ :diag /;
AFSMTS_dump $@
Dumpts through B<Data::Dumper::Dump()> (wrapped in B<Test::More::diag()>).
Void if I<STDOUT> isa not terminal, I<$ENV{QUIET}> is TRUE, I<@_> is empty, or
I<@_> consists of FALSEs.
=cut
sub AFSMTS_dump ( $ ) {
-t STDOUT && !$ENV{QUIET} && @_ && $_[0] or return;
require Data::Dumper;
Test::More::diag( Data::Dumper->Dump([ shift @_ ])) }
=item B<AFSMTS_deeply()>
use t::TestSuite qw/ :run /;
our( $rc, $bb );
AFSMTS_wrap;
AFSMTS_deeply @{[[qw/ items left /], { status => 'S0' }]}, 'description';
Wrapper around B<Test::More::deeply()>.
Parameters (for B<T::M::d()>, namely) are ARRAY of two items:
( run in 0.244 second using v1.01-cache-2.11-cpan-4d50c553e7e )