GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEXT::PIPE::TESTER (3)

.ds Aq ’

NAME

Text::Pipe::Tester - Common text filter API

CONTENTS

SYNOPSIS



    use Text::Pipe::Tester;
    pipe_ok(List::Grep, [ code => sub { $_ % 2 } ],
        [ 1 .. 10 ], [ 1, 3, 5, 7, 9 ]);



DESCRIPTION

This is not a pipe segment; rather it exports a function that helps in testing pipes.

FUNCTIONS

pipe_ok


    pipe_ok($type, $options, $input, $expect, $name);

    pipe_ok(List::Grep, [ code => sub { $_ % 2 } ],
        [ 1 .. 10 ], [ 1, 3, 5, 7, 9 ]);



Constructs a pipe segment of type $type using options $options. It then sends the $input through the pipe and checks that the pipe returns $output; the check is done with is_deeply() for array references. For the test name, $name is used if given, or $type if no name has been specified.

Text::Pipe::Tester inherits from Exporter.

The superclass Exporter defines these methods and functions:



    as_heavy(), export(), export_fail(), export_ok_tags(), export_tags(),
    export_to_level(), import(), require_version()



BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests through the web interface at <http://rt.cpan.org>.

INSTALLATION

See perlmodinstall for information and options on installing Perl modules.

AVAILABILITY

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.

The development version lives at <http://github.com/hanekomu/text-pipe/>. Instead of sending patches, please fork this project using the standard git and github infrastructure.

AUTHORS

Marcel Gruenauer, <marcel@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2007-2009 by the authors.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEXT::PIPE::TESTER (3) 2009-09-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.