Perlito5
view release on metacpan or search on metacpan
lib/Perlito5X/Test/Builder.pm view on Meta::CPAN
In such cases, you are advised to either split the test file into smaller
ones, or use a reverse approach, doing "normal" (code) compares and
triggering C<fail()> should anything go unexpected.
Future versions of Test::Builder will have a way to turn history off.
=head1 EXAMPLES
CPAN can provide the best examples. L<Test::Simple>, L<Test::More>,
L<Test::Exception> and L<Test::Differences> all use Test::Builder.
=head1 SEE ALSO
L<Test::Simple>, L<Test::More>, L<Test::Harness>
=head1 AUTHORS
Original code by chromatic, maintained by Michael G Schwern
E<lt>schwern@pobox.comE<gt>
lib/Perlito5X/Test/More.pm view on Meta::CPAN
place where they start differing.
C<is_deeply()> compares the dereferenced values of references, the
references themselves (except for their type) are ignored. This means
aspects such as blessing and ties are not considered "different".
C<is_deeply()> currently has very limited handling of function reference
and globs. It merely checks if they have the same referent. This may
improve in the future.
L<Test::Differences> and L<Test::Deep> provide more in-depth functionality
along these lines.
B<NOTE> is_deeply() has limitations when it comes to comparing strings and
refs:
my $path = path('.');
my $hash = {};
is_deeply( $path, "$path" ); # ok
is_deeply( $hash, "$hash" ); # fail
lib/Perlito5X/Test/More.pm view on Meta::CPAN
L<Fennec> The Fennec framework is a testers toolbox. It uses L<Test::Builder>
under the hood. It brings enhancements for forking, defining state, and
mocking. Fennec enhances several modules to work better together than they
would if you loaded them individually on your own.
L<Fennec::Declare> Provides enhanced (L<Devel::Declare>) syntax for Fennec.
=head2 ADDITIONAL LIBRARIES
L<Test::Differences> for more ways to test complex data structures.
And it plays well with Test::More.
L<Test::Class> is like xUnit but more perlish.
L<Test::Deep> gives you more powerful complex data structure testing.
L<Test::Inline> shows the idea of embedded testing.
L<Mock::Quick> The ultimate mocking library. Easily spawn objects defined on
the fly. Can also override, block, or reimplement packages as needed.
( run in 0.556 second using v1.01-cache-2.11-cpan-131fc08a04b )