]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - lib/Test/Valgrind/Action/Captor.pm
This is 1.19
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind / Action / Captor.pm
index d31fcbf96d0ce0c4a2fad934d66c760169f93529..ce24fe1efbe8c68e7d8c90f64f1bc0e1c681f160 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Action::Captor - Mock Test::Valgrind::Action for capturing outpu
 
 =head1 VERSION
 
-Version 1.10
+Version 1.19
 
 =cut
 
-our $VERSION = '1.10';
+our $VERSION = '1.19';
 
 =head1 DESCRIPTION
 
@@ -25,7 +25,7 @@ It's not meant to be used directly as an action.
 
 use File::Spec ();
 
-use base qw/Test::Valgrind::Carp/;
+use base qw<Test::Valgrind::Carp>;
 
 =head1 METHODS
 
@@ -50,7 +50,10 @@ sub _dup_fh {
              or $_[0]->_croak('open(' . fileno($_[1]) . ", '$_[2]&', $fd): $!");
 }
 
-=head2 C<save_fh $from, $mode [, $to ]>
+=head2 C<save_fh>
+
+    $tva->save_fh($from, $mode);
+    $tva->save_fh($from, $mode, $to);
 
 Save the original filehandle C<$from> opened with mode C<$mode>, and redirect it to C<$to> if it's defined or to F</dev/null> otherwise.
 
@@ -78,6 +81,8 @@ sub save_fh {
 
 =head2 C<restore_all_fh>
 
+    $tva->restore_all_fh;
+
 Restore all the filehandles that were saved with L</save_fh> to their original state.
 
 The redirections aren't closed.
@@ -127,7 +132,7 @@ You can find documentation for this module with the perldoc command.
 
 =head1 COPYRIGHT & LICENSE
 
-Copyright 2009 Vincent Pit, all rights reserved.
+Copyright 2009,2010,2011,2013,2015,2016 Vincent Pit, all rights reserved.
 
 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.