1Test::Valgrind::Action:U:sCearptCoorn(t3r)ibuted Perl DoTceusmte:n:tVaatligornind::Action::Captor(3)
2
3
4

NAME

6       Test::Valgrind::Action::Captor - Mock Test::Valgrind::Action for
7       capturing output.
8

VERSION

10       Version 1.19
11

DESCRIPTION

13       This class provides helpers for saving, redirecting and restoring
14       filehandles.
15
16       It's not meant to be used directly as an action.
17

METHODS

19   "new"
20       Just a croaking stub to remind you not to use this class as a real
21       action.
22
23   "save_fh"
24           $tva->save_fh($from, $mode);
25           $tva->save_fh($from, $mode, $to);
26
27       Save the original filehandle $from opened with mode $mode, and redirect
28       it to $to if it's defined or to /dev/null otherwise.
29
30   "restore_all_fh"
31           $tva->restore_all_fh;
32
33       Restore all the filehandles that were saved with "save_fh" to their
34       original state.
35
36       The redirections aren't closed.
37

SEE ALSO

39       Test::Valgrind, Test::Valgrind::Action.
40
41       Capture::Tiny.
42

AUTHOR

44       Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
45
46       You can contact me by mail or on "irc.perl.org" (vincent).
47

BUGS

49       Please report any bugs or feature requests to "bug-test-valgrind at
50       rt.cpan.org", or through the web interface at
51       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>.  I will
52       be notified, and then you'll automatically be notified of progress on
53       your bug as I make changes.
54

SUPPORT

56       You can find documentation for this module with the perldoc command.
57
58           perldoc Test::Valgrind::Action::Captor
59
61       Copyright 2009,2010,2011,2013,2015,2016 Vincent Pit, all rights
62       reserved.
63
64       This program is free software; you can redistribute it and/or modify it
65       under the same terms as Perl itself.
66
67
68
69perl v5.32.0                      2020-07-28 Test::Valgrind::Action::Captor(3)
Impressum