Software Index
Linux Software Programming  


download download home home   report broken
important software information
company name:
Steven Lembark
license: Freeware
minimum requirements:
functional limitations:
Object::Exercise description
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).

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

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.

Exceptions are trapped and logged. The last operation can be re-executed if it fails.

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.


use Object::Exercise;

my @operationz =
[ method arg arg arg ... ] # method and arguments
[ 1 ], # expected value

qw( method arg arg arg ) # just check for $@

[ qw( method expected to fail ) ] # continue on failure

[ $coderef, @argz ], # $obj->$coderef( @argz )
[ ( 1 .. 10 ) ], # expected value
'Coderef returns list' # hardwired message

# You can push the operations through an class:

$exercise->( 'YourClass', @test_opz ); # YourClass->method( @argz )

# or an object:

my $object = YourClass->new( @whatever );. The CPAN Search Site -
Similar software
xSQL Object (Popularity: ) : xSQL Object is a professional grade SQL tool for comparing and synchronizing SQL Server databases. Compare tables, views, stored procedures, functions - all objects - SQL Server 2000 and SQL Server 2005. It allows the developers and database administrators to ...
Chicken (Popularity: ) : CHICKEN is a compiler for the Scheme programming language. It produces portable, efficient C, supports almost all of the current Scheme language standard, the Revised5 Report on the Algorithmic Language Scheme (R5RS ), and includes many enhancements and extensions. CHICKEN ...
Ctalk for Linux (Popularity: ) : Ctalk 0.0.95a / 0.0.96a RC4

Ctalk adds object oriented language features, like classes, methods, operator overloading, and inheritance, to C programs.

The Ctalk project provides the ctalk interpreter, which translates ctalk into C for compilation, a run time library that supports objects ...

File::Find::Node (Popularity: ) : The constructor File::Find::Node->new creates a top level File::Find::Node object for the specified path. The $f->process method takes a reference to a callback function that is called for each item in the traversal. The $f->post_process method takes a reference to a ...
gtkmm for Linux (Popularity: ) : gtkmm is the official C++ interface for the popular GUI library GTK+.

Highlights of gtkmm include typesafe callbacks, widgets extensible via inheritance and a comprehensive set of widgets.

You can create user interfaces either in code or with the Glade designer, using ...

DBIx::SQLEngine (Popularity: ) : DBIx::SQLEngine - Extends DBI with High-Level Operations


The DBIx::SQLEngine class provides an extended interface for the DBI database framework. Each SQLEngine object is a wrapper around a DBI database handle, adding methods that support ad-hoc SQL generation and query execution in ...

django-generic-flatblocks (Popularity: ) : django-generic-flatblocks is a Django plugin that solves this problem as it knows nothing about the content itself. You attach your hand made content node (a simple model) where you can define any fields you want.


1. Insert django_generic_flatblocks to your ...

django-attachments (Popularity: ) : django-attachments is a generic set of template tags for the Django framework to attach any kind of files to models.


Put attachments to your INSTALLED_APPS in your within your django project. This app provides a additional permission delete_foreign_attachments which enables ...

django-campaign (Popularity: ) : django-campaign is a basic newsletter app for the Django webframework.

Here is a very brief overview how to use django-campaign:

* Import (or enter by hand) a number of subscribers into the Subscriber model. Importing json formatted data is possible.
* Build one ...

Data::Visitor::Encode (Popularity: ) : Data::Visitor::Encode is a Perl module to encode/decode values in a structure.


use Data::Visitor::Encode;

my $dev = Data::Visitor::Encode->new();
my %hash = (...); # assume data is in Perl native Unicode
$dev->encode('euc-jp', \%hash); # now strings are in euc-jp
$dev->decode('euc-jp', \%hash); # ...

Object::Trampoline (Popularity: ) : Object::Trampoline is a Perl module for delay object construction, and optionally using the class' module, until a method is actually dispatched, simplifies runtime definition of handler classes.


# adding "use_class" will perform an "eval use $class"
# at the point where the ...

OpenDBX (Popularity: ) : OpenDBX is an extremely lightweight but extensible C library for accessing databases with a single API.

OpenDBX provides a clean and simple interface across all supported databases that leads to an elegant code design automatically. Currently supported databases are:

· Firebird
· Interbase
· ...

User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
Similar scripts
PHP Object Generator (Popularity: ) : POG (PHP Object Generator) saves the PHP developer time by generating tested and efficient PHP Objects. The programming pattern behind POG is Object-Relational Mapping also known as Active Record or Persistence Layer. Above all else, the generated code has been ...
Object.Event (Popularity: ) : Object.Event allows you to create and control events on any JavaScript object. Object.Event accomplishes this by providing an observer/observable implementation nearly identical to the one implemented in Prototype's Element.observe(), except that it is not specific to DOM events or Element ...
Iterating through large file-like object (Popularity: ) : This function provides a simple iterator for the lines of a file-like object. (It also provides a flag for removing/retaining trailing newlines.) I ran into the problem a number of times that I wanted to read-in a very large file-like ...
Object Model Browser (Popularity: ) : This is, simply put, an HTML file that can view and alter the internals of the browser's Document Object Model. It takes a browser object (e.g. 'window.document', and it indexes and sorts all child objects, properties, and event handlers. You ...
Dictionary Object Template (Popularity: ) : This script is a template for a program that opens, saves, deletes and adds entries to a dictionary object. Can be readily modified into an address book . It is also a learning tool because the code contains potentially patronising ...
Caching object creation (Popularity: ) : This script contains many recipes to memoize functions. Using this script you can cache object creation, i.e. __new__ and __init__ methods are called only when n.e. __newt;br />
Null Object Design Pattern (Popularity: ) : This script is a sample implementation of the 'Null Object' design pattern. Roughly, the goal with Null objects is to provide an 'intelligent' replacement for the often used primitive data type None in Python or Null (or Null pointers) in ...
Extensible object to XML converter (Popularity: ) : This function generates XML for any Python object through recursive functions. It is easy to add specific handlers for your own object types for more complex output options.
Fast copy of an object having a slow __i (Popularity: ) : Special method __copy__ is the easiest way for an object to cooperate with the copy.copy function. This script allows you to bypass the object's __init__, even if it's slow, to get an 'empty' object of this class.
Fibonacci Object (Popularity: ) : This script shows a simple class useful to compute Fibonacci numbers. Object methods return the nth Fibonacci number, return list first n Fibonacci numbers and list from F(k) to F(n) numbers.
Rate me
supported os's
downloads 3
version 1.14
size in Kb 10
user rating 5/10
our rating 0 Stars
share info
Recommend Object::Exercise
Report spyware
New Software
Popular Software
Latest Reviews