BioPerl-DB
view release on metacpan or search on metacpan
t/lib/Test/Builder/Tester.pm view on Meta::CPAN
Once C<test_out> or C<test_err> (or C<test_fail> or C<test_diag>) have
been called once all further output from B<Test::Builder> will be
captured by B<Test::Builder::Tester>. This means that your will not
be able perform further tests to the normal output in the normal way
until you call C<test_test> (well, unless you manually meddle with the
output filehandles)
=cut
sub test_out(@)
{
# do we need to do any setup?
_start_testing() unless $testing;
$out->expect(@_)
}
sub test_err(@)
{
# do we need to do any setup?
_start_testing() unless $testing;
$err->expect(@_)
}
=item test_fail
Because the standard failure message that B<Test::Builder> produces
t/lib/Test/More.pm view on Meta::CPAN
# &&
# undef
It's also useful in those cases where you are comparing numbers and
is()'s use of C<eq> will interfere:
cmp_ok( $big_hairy_number, '==', $another_big_hairy_number );
=cut
sub cmp_ok($$$;$) {
my $tb = Test::More->builder;
$tb->cmp_ok(@_);
}
=item B<can_ok>
can_ok($module, @methods);
can_ok($object, @methods);
( run in 0.228 second using v1.01-cache-2.11-cpan-65fba6d93b7 )