Sponsored Content
The Lounge What is on Your Mind? I want to be a white-hat hacker! Post 302560696 by Corona688 on Friday 30th of September 2011 02:52:53 PM
Old 09-30-2011
Do you mean an expert in penetration testing, or do you mean a software/hardware experimenter?
 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Certified Ethical Hacker

hello all, first of all i'm not sure this is correct place to post but i could not find a place about certificates and exams so this seemed most appropriate. i'm interested in CEH if it's any good and where to take exams, and any books you can forward me to. i do have one book but it's couple... (3 Replies)
Discussion started by: rookie
3 Replies

2. What is on Your Mind?

Hacker=Knowlegde Qoute

I don't know if anyone has seen this commercial, either on TV or on the internet, but it's an IBM Linux Prodigy commercial. Linux Prodigy 4Gf6hq8J_DQ At around 33 seconds there is a quote about collecting and sharing data. A couple of friends and I watched this and decided to try to create a... (0 Replies)
Discussion started by: Texasone
0 Replies
App::Cmd::Tester::CaptureExternal(3pm)			User Contributed Perl Documentation		    App::Cmd::Tester::CaptureExternal(3pm)

NAME
App::Cmd::Tester::CaptureExternal - Extends App::Cmd::Tester to capture from external subprograms VERSION
version 0.318 SYNOPSIS
use Test::More tests => 4; use App::Cmd::Tester::CaptureExternal; use YourApp; my $result = test_app(YourApp => [ qw(command --opt value) ]); like($result->stdout, qr/expected output/, 'printed what we expected'); is($result->stderr, '', 'nothing sent to sderr'); ok($result->output, "STDOUT concatenated with STDERR"); DESCRIPTION
App::Cmd::Tester provides a useful scaffold for testing applications, but it is unable to capture output generated from any external subprograms that are invoked from the application. This subclass uses an alternate mechanism for capturing output (Capture::Tiny) that does capture from external programs, with one major limitation. It is not possible to capture externally from both STDOUT and STDERR while also having appropriately interleaved combined output. Therefore, the "output" from this subclass simply concatenates the two. You can still use "output" for testing if there is any output at all or for testing if something appeared in either output stream, but you can't rely on the ordering being correct between lines to STDOUT and lines to STDERR. AUTHOR
Ricardo Signes <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo Signes. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-05-05 App::Cmd::Tester::CaptureExternal(3pm)
All times are GMT -4. The time now is 01:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy