Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.545.435 Times

Test::Resub 1.02

  Date Added: January 18, 2010  |  Visits: 569

Test::Resub

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Called Lexically Lexically Scoped Libraries Programming Replacement Scoped Show Subroutine Testresub
Users rating: 0/10

License: Freeware Size: 14.34 KB
USER REVIEWS
More Reviews or Write Review


TEST::RESUB RELATED
Reference  -  Casting a Podcast Line by Asu 1.0.0.4
Podcasting is new to both Ask-a-Biologist and also an exciting new science program called Science Studio. The host of this new show, Peggy Coulombe, talks with Dr. Biology about what it has been like to start podcasting. Requirements: Windows...
5 MB  
Entertainment  -  Parenthood 1.0.0.0
This app is about a show on NBC called Parenthood. It described the plot of the show and has descriptions and pictures for each of the character in the TV show. Requirements: Windows Phone 8.1, Windows Phone 8
4 MB  
Libraries  -  Config::Scoped 0.11
Config:Scoped is a feature rich configuration file parser..
66.56 KB  
Libraries  -  imlib 1.9.15
Imlib is an advanced replacement library for libraries like libXpm that provides many more features with much greater flexibility and speed. It was originally written for E, now used by the GNOME Project..
901.12 KB  
Libraries  -  B::JVM::Jasmin::CompileState 0.02
B::JVM::Jasmin::CompileState is an internal package used by B::JVM::Jasmin to keep state of compilation. SYNOPSIS use B::JVM::Jasmin::CompileState; my $state = new B::JVM::Jasmin::CompileState([HASHREF]); This class is used to store the...
44.03 KB  
Libraries  -  GNU Classpath 0.95
GNU Classpath (essential libraries for Java) is a project to create free core class libraries for use with virtual machines and compilers for the Java programming language. GNU Classpath project includes all native methods and core classes...
6.5 MB  
Libraries  -  Boehm-Demers-Weiser Conservative Garbage Collector 7.0
The Boehm-Demers-Weiser conservative garbage collector can be used as a garbage collecting replacement for C malloc or C++ new. Boehm-Demers-Weiser Conservative Garbage Collector allows you to allocate memory basically as you normally would,...
1024 KB  
Libraries  -  Class::StrongSingleton 0.02
Class::StrongSingleton is a stronger and more secure Singleton base class. SYNOPSIS package My::Singleton::Class; use base qw(Class::StrongSingleton); sub new { my ($class, %my_params) = @_; # create our object instance my $instance = {...
6.14 KB  
Libraries  -  The Freiburg Project 2.0
The Freiburg project is an infrastructure to replace shared libraries with a client/server interface. This system converts a shared library into a "service" using Unix or inet domain sockets for communication. The "service" will be usable by any...
204.8 KB  
Libraries  -  Filter::Simple::Compile 0.02
Filter::Simple::Compile is a drop-in replacement to Filter::Simple. SYNOPSIS Drop-in replacement for Filter::Simple: package MyFilter; use Filter::Simple::Compile; FILTER { ... }; This way also works: use Filter::Simple::Compile sub {...
13.31 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB