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

Test::Without 0.10

Company: Randy J Ray
Date Added: September 06, 2013  |  Visits: 155

Test::Without

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 downloads)

Test::Without is a Perl module that makes it easy for test scripts to exclude specific modules and/or directories from the Perl search-path during the execution of blocks of code.<br /><br />Developer comments<br /><br />I wrote this after needing to write a fairly ugly hack for a different CPAN module, in order to test code that would try to load Compress::Zlib, but needed to test the logic paths that only execute when compression is not available. This module is not for testing whether code loads and compiles correctly; see the use_ok function of Test::More for that.<br /><br />The module works by creating a lexical scope in which both @INC and %INC are localized, and executing the given block within that scope. The modules (and possibly direcories) to be hidden are specified at this time. Directories that are given are immediately removed from @INC. Modules are handled by means of a subroutine inserted at the head of @INC.<br /><br />Conversely, the syntax can be used to require the present of specific modules, throwing an exception via die if any request resource is not available, or temporarily add extra paths to @INC. In such a case, none of the code in the provided block will have been run prior to the reporting of the missing resources.<br /><br />A caller can also provide parameters to be passed to the code block when it is called. This is superfluous for inline-defined blocks, but in cases where the block argument is a code-reference scalar that is being reused, this can be useful.<br /><br />SYNOPSIS<br /><br /> use Test::Without;<br /><br /> run {<br /> eval "require RPC::XML::Client";<br /> $client = RPC::XML::Client->new();<br /><br /> ok(! $client->compress(), "Client has no compression support");<br /> } without 'Compress::Zlib';<br /><br /> # Run a block with parameters<br /> run {<br /> my %args = @_;<br /> eval "require RPC::XML::Server";<br /> $server = RPC::XML::Server->new(@_);<br /><br /> is($server->port, $args{port}, "Port set correctly");<br /> is($server->path, $args{path}, "Path set correctly");<br /> # Etc.<br /> } without 'Compress::Zlib', 'Net::Server',<br /> params port => 9000, path => '/RPC';

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Block Blocks Called Caller Compression Compresszlib Correctlyquot Inlinedefined Module Modules Parameters Paths Quotrequire Scope Specific Superfluous Test Testwithout
Users rating: 0/10

License: Freeware Size: 20.48 KB
TEST::WITHOUT RELATED
Modules  -  Advanced Taxonomy Blocks 6.x-3.5
Advanced Taxonomy Blocks makes use of the JQuery menu module to create extremely customizable blocks for browsing through single hierarchy taxonomies. Though the taxonomy menu module does something similar, if you use this module you will see that...
10 KB  
Libraries  -  X11Blocks 0.0.1
X11Blocks package is an Objective-C Block oriented X Window System Toolkit. X11Blocks is a layer above "Xlib" (version 11) and provides functionality that is similar to the "Xt" (X Intrinsics) and Xaw widget libraries. Whereas much of the X...
51.2 KB  
Games  -  1# Pumpkinz Puzzle Shooter Blitz 1.0
★- Ain't your Grandma's puzzle. ★- 100% FREE TO PLAY! ★- COMPLETELY UNLOCKED! ★- Fun Halloween Theme! Play this fun Pumpkin Block Shooter called #1 Pumpkinz Puzzle Shooter Blitz! It's an honest and fun puzzle...
23.5 MB  
Education  -  Quiztris Lite - Short questions for growing minds 1.2
***** Lite version of Quiztris Please buy full version: http://itunes.apple.com/us/app/quiztris-exercise-for-growing/id529831019?ls=1&mt=8 ***** A sequence of Blocks called QuizBlocks fall down the play area. Three Answer...
1.5 MB  
Modules  -  Views Tagadelic 1.0
When selected, the nodes returned by the view are themed as a "Tagadelic" block in the same vein as the tagadelic module. At least one vocabulary field should be added to the Field List.Installation - Unpack in your modules folder (usually...
 
Modules  -  ModuleInfo 6.x-1.2
What this Module DoesIn the description of each module on the page admin/build/modules, ModuleInfo places a list of the Pages, Blocks, and Content-types created by that module. Basically it alerts the user to any changes that a module makes to the...
10 KB  
Virus Removers  -  Spybot - Search and Destroy 1.4
SpyBot Search and Destroy searches your hard drive for so-called spy- or adbots; that is, little modules that are responsible for the ads many programs display. Many of these modules also transmit information, including your surfing behavior on...
2.34 MB  
Modules  -  javascript and CSS reloader 6.x-1.0
This is a utility module for developers deals with a specific problem: If a module loads its own javascript and/or CSS files in hook_form_alter() - and then there is an error when the form is submitted the hook will not be called again (the form...
10 KB  
Puzzles  -  Block Attack - Raise of the Blocks 1.3.0
Block Attack - Raise of the Blocks is another block fall game based on Tetris Attack. Block Attack - Raise of the Blocks is a block fall game. Like Tetris Attack and Crack Attack, block are raising from the floor and the player must clear them...
4.8 MB  
Modules  -  Block tab 6.x-1.0
Block tab module allows you to display blocks in a region as tabbed contents (1 block content is visible at a time). Block titles are tabs, and block contents are the content.Installation: * Enable block_tab module * Visit the admin setting page...
102.4 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
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