Test::Stream::DeepCheck::Util - Reusable components of Test-Stream-DeepCheck
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.
This library holds things used by various components that get reused in other Test-Stream-DeepCheck classes.
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
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.
$var
This returns a reference that always renders as '...' when passed to render_var().
render_var()
The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/.
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
To install Test::Stream, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Stream
CPAN shell
perl -MCPAN -e shell install Test::Stream
For more information on module installation, please visit the detailed CPAN module installation guide.