NAME
Test::Stream::DeepCheck::Util - Reusable components of Test-Stream-DeepCheck
EXPERIMENTAL CODE WARNING
This is an experimental release! Test-Stream, and all its components are still in an experimental phase. This dist has been released to cpan in order to allow testers and early adopters the chance to write experimental new tools with it, or to add experimental support for it into old tools.
PLEASE DO NOT COMPLETELY CONVERT OLD TOOLS YET. This experimental release is very likely to see a lot of code churn. API's may break at any time. Test-Stream should NOT be depended on by any toolchain level tools until the experimental phase is over.
DESCRIPTION
This library holds things used by various components that get reused in other Test-Stream-DeepCheck classes.
SYNOPSIS
use Test::Stream::DeepCheck::Util qw/render_var yada/;
print render_var($var);
print render_var(yada());
print render_var($var, 1); # force quote wrapping
EXPORTS
- $string = render_var($var)
- $string = render_var($var, $stringify)
-
This takes the variable
$var
which can be anything, a reference, a string, a numbers, etc. And returns the most hepful representation of that variable for display in diagnostics. If stringify is set to true then most things will be returned wrapped in single-quotes. - yada()
-
This returns a reference that always renders as '...' when passed to
render_var()
.
SOURCE
The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/.
MAINTAINERS
AUTHORS
COPYRIGHT
Copyright 2015 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html