Main > Programming > Libraries >

Test::Resub 1.02

Test::Resub 1.02

Sponsored Links

Test::Resub 1.02 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.014 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 833
Date added: 2007-07-13
Publisher: AirWave Wireless

Test::Resub 1.02 description

Test::Resub is a lexically scoped subroutine replacement for testing.

SYNOPSIS

#!/usr/bin/perl

use Test::More tests => 4;
use Test::Resub qw(resub);

{
package Somewhere;
sub show {
my ($class, $message) = @_;
return "$class, $message";
}
}

# sanity
is( Somewhere->show(beyond the sea), Somewhere, beyond the sea );

# scoped replacement of subroutine with argument capturing
{
my $rs = resub Somewhere::show, sub { hi }, capture => 1;
is( Somewhere->show(over the rainbow), hi );
is_deeply( $rs->method_args, [[over the rainbow]] );
}

# scope ends, resub goes away, original code returns
is( Somewhere->show(waiting for me), Somewhere, waiting for me );

This module allows you to temporarily replace a subroutine/method with arbitrary code. Later, you can tell how many times was it called and with what arguments each time. You can also specify that the subroutine/method must get called, must not get called, or may be optionally called.

Test::Resub 1.02 Screenshot

Advertisements

Test::Resub 1.02 Keywords

Bookmark Test::Resub 1.02

Hyperlink code:
Link for forum:

Test::Resub 1.02 Copyright

WareSeeker periodically updates pricing and software information of Test::Resub 1.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Test::Resub 1.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Test::Signature is a Perl module to automate SIGNATURE testing. Free Download
Test::Trap is a Perl module with trap exit codes, exceptions, output, etc. Free Download
Test::Struct is a Perl extension for testing for structural equivelence. Free Download
Test soon project is a testing framework trying to enable you to write tests quickly. Free Download
Test::Cmd is a Perl module for portable testing of commands and scripts. Free Download
Rocket is a game where you try to land a rocket on a moving platform. Free Download
Test::Unit is the main PerlUnit testing framework. Free Download
Test::More is yet another framework for writing test scripts. Free Download