Capture-Tiny-Extended
view release on metacpan or search on metacpan
Revision history for Capture-Tiny-Extended
0.114 2011-08-04 10:41:44 Europe/Berlin
- fixed copyright notice, thanks to Marcus Ramberg <marcus@nordaaker.com>
0.113 2011-06-24 14:29:41 Europe/Berlin
- Tests will not use Test::Differences version 0.60 or greater
0.102 2011-03-20 00:48:19 Europe/Berlin
- reworded and reformatted documentation
- added syntax sugar for passing capture file options
0.101 2011-03-18 18:17:01 Europe/Berlin
- forked from Capture-Tiny
- added ability to capture return values as well
- added ability to provide files to capture to in realtime
[@DAGOLDEN]
git_remote = github
[OSPrereqs / MSWin32]
Win32API::File = 0
[RemovePrereqs]
remove = PerlIO
remove = PerlIO::scalar
remove = Test::Differences
remove = Config
t/lib/Cases.pm view on Meta::CPAN
use Test::More;
use Capture::Tiny::Extended ':all';
require Exporter;
our @ISA = 'Exporter';
our @EXPORT_OK = qw(
run_test
);
my $have_diff = eval {
require Test::Differences;
Test::Differences->import;
$Test::Differences::VERSION < 0.60; # 0.60+ is causing strange failures
};
sub _is_or_diff {
my ($g,$e,$l) = @_;
if ( $have_diff ) { eq_or_diff( $g, $e, $l ); }
else { is( $g, $e, $l ); }
}
sub _binmode {
my $text = shift;
( run in 3.339 seconds using v1.01-cache-2.11-cpan-600a1bdf6e4 )