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

Object::Exercise 1.14

Company: Steven Lembark
Date Added: November 06, 2013  |  Visits: 176

Object::Exercise

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 downloads)



Object::Exercise is a Perl module that exports a single subroutine, $exercise, which functions as an OO execution loop (see '-n' for changing the installed name).<br /><br />$execute is a subroutine reference that takes an object and set of operations. The first element in that list is an object of the class being tested. The remaining elements are a list of operations, each of which is an array reference.<br /><br />Each operation consists of a method call and the method's arguments. Each method call is dispatched using the object, optionally comparing the return value to some pre-defined result.<br /><br />Exceptions are trapped and logged. The last operation can be re-executed if it fails.<br /><br />All operations are passed in as arrayrefs. They can be nested either to store a return value and test to run, or to hold a list consisting of a method name and its arguments.<br /><br />SYNOPSIS<br /><br /> use Object::Exercise;<br /><br /> my @operationz =<br /> (<br /> [<br /> [ method arg arg arg ... ] # method and arguments<br /> [ 1 ], # expected value<br /> ],<br /><br /> [<br /> qw( method arg arg arg ) # just check for $@<br /> ],<br /><br /> [<br /> [ qw( method expected to fail ) ] # continue on failure<br /> [],<br /> ],<br /><br /> [<br /> [ $coderef, @argz ], # $obj->$coderef( @argz )<br /> [ ( 1 .. 10 ) ], # expected value<br /> 'Coderef returns list' # hardwired message<br /> ]<br /> );<br /><br /> # You can push the operations through an class:<br /><br /> $exercise->( 'YourClass', @test_opz ); # YourClass->method( @argz )<br /><br /> # or an object:<br /><br /> my $object = YourClass->new( @whatever );<br /><br /> $exercise->( $object, @test_opz ); # $object->method( @argz )

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Arguments Class Consisting Exercisegt Expected Message Method Nested Object Objectexercise Objectexercise 1 14 Operation Operations Return Store Subroutine Test Opz Yourclassgtmethod
Users rating: 0/10

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


OBJECT::EXERCISE RELATED
Libraries  -  Rose::DB::Object::Helpers 0.764
Rose::DB::Object::Helpers is a mix-in class containing convenience methods for Rose::DB::Object. SYNOPSIS package MyDBObject; use Rose::DB::Object; our @ISA = qw(Rose::DB::Object); use Rose::DB::Object::Helpers clone, { load_or_insert =>...
481.28 KB  
Database Tools  -  pl2method 1.0
pl2method uses PHP 5 __call function to map class function calls to execute stored procedures with the same name on a given PostgreSQL database schema.pl2method passes function parameter values to the stored procedure as its parameters. If the...
10 KB  
Libraries  -  Object::Relation::Meta::Class::Schema 0.1.0
Object::Relation::Meta::Class::Schema is a Perl module for Object::Relation database store builder. This module is provides metadata for all Object::Relation classes while building a storage schema. Loading Object::Relation::Schema causes it to...
24.58 KB  
Miscellaneous  -  AbstractFactory 1.0
This script has a base Factory class that is meant to be subclassed and then define a default implementation to return, as well as module's to search for the class implementation.
 
Miscellaneous  -  Static or Class Methods 1.0
This script implements class methods that do not require an object instance.
 
Libraries  -  OPML Writer 0.1
OPML Writer is a PHP4 class for writing OPML files with an object-oriented approach..
163.84 KB  
Automation Tools  -  OWFS 2.6p5
OWFS is a method under linux to allow 1-wire devices to appear like files in a directory. You can then enter a command like "cat */temperature" to have all the temperatures sensors measure and print their data. For instance, the collection of...
808.96 KB  
Database Tools  -  Loomes Nested Set 1.0
Loomes Nested Set can perform several types of operations to manipulate an hierarchy of nodes that are stored in a database as table records.Currently Loomes Nested Set can insert a root node, insert a node that is child of a given parent, delete...
51.2 KB  
ActiveX Components  -  Object Join,View and Binding Framework for .NET 0.8
Object Joining View and Binding framework for .NET 1.1.OJVB is a purely object oriented design approach to provide .NET application developers a Typed DataSet like class framework with built-in support for object join view at run-time. OJVB...
240 KB  
Business  -  131TOW 1.0
131 TOW is fully accredited to ISO standard 9001 and 14001 Safe work method statements, developed to tier 1 safety for mining, construction, and transport industry. Tow operators trained to conduct risk assessments and job safety...
7.7 MB  
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