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

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

Serving Software Downloads in 956 Categories, Downloaded 50.177.023 Times

Test::LectroTest 0.3500

  Date Added: January 25, 2010  |  Visits: 706

Test::LectroTest

Report Broken Link
Printer Friendly Version


Product Homepage
Download (91 downloads)



Test::LectroTest is a Perl module with easy, automatic, specification-based tests. SYNOPSIS #!/usr/bin/perl -w use MyModule; # contains code we want to test use Test::LectroTest; Property { ##[ x <- Int, y <- Int ]## MyModule::my_function( $x, $y ) >= 0; }, name => "my_function output is non-negative" ; Property { ... }, name => "yet another property" ; # more properties to check here This module provides a simple (yet full featured) interface to LectroTest, an automated, specification-based testing system for Perl. To use it, declare properties that specify the expected behavior of your software. LectroTest then checks your software to see whether those properties hold. Declare properties using the Property function, which takes a block of code and promotes it to a Test::LectroTest::Property: Property { ##[ x <- Int, y <- Int ]## MyModule::my_function( $x, $y ) >= 0; }, name => "my_function output is non-negative" ; The first part of the block must contain a generator-binding declaration. For example: ##[ x <- Int, y <- Int ]## (Note the special bracketing, which is required.) This particular binding says, "For all integers x and y." (By the way, you arent limited to integers. LectroTest also gives you booleans, strings, lists, hashes, and more, and it lets you define your own generator types. See Test::LectroTest::Generator for more.) The second part of the block is simply a snippet of code that makes use of the variables we bound earlier to test whether a property holds for the piece of software we are testing: MyModule::my_function( $x, $y ) >= 0; In this case, it asserts that MyModule::my_function($x,$y) returns a non-negative result. (Yes, $x and $y refer to the same x and y that we bound to the generators earlier. LectroTest automagically loads these lexically bound Perl variables with values behind the scenes.).

Requirements: No special requirements
Platforms: Linux
Keyword: Automatic Easy Lectrotest Libraries Module Perl Perl Module Programming Properties Property Testlectrotest
Users rating: 0/10

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


TEST::LECTROTEST RELATED
Libraries  -  Test::LectroTest::Property 0.3500
Test::LectroTest::Property is a Perl module with properties that make testable claims about your software. SYNOPSIS use MyModule; # provides my_function_to_test use Test::LectroTest::Generator qw( :common ); use Test::LectroTest::Property...
54.27 KB  
Modules  -  Module Template System 5.x-1.6
Drupal 5 doesnt have a nice easy way for module developers to drop .tpl.php files in their module directories for use with modules that do a lot of output. I have no idea why. Drupal 6 has this but 5 does not. So I've created a module that allows...
10 KB  
Programming  -  Parallel::ThreadContext 0.01
This module provides a framework and some utilities for easy creation of multithreaded Perl programs. It introduces and uses the concept of context based concurrent threads. A context specifies a kind of name and work space for thread...
10.24 KB  
Libraries  -  LBC Libraries 0.0.7
LBC Libraries is a set of easy C libraries that provide classical data types and structures (string, hash, queue, stack, tree). LBC Libraries package is focused on simplicity and portability. It uses ANSI C (C98 standard not required), and...
57.34 KB  
Libraries  -  AppleMods 1.0
The AppleMods project consists of AppleMods Loader, an easy-to-use module management system for AppleScript, and a range of general-purpose modules (or libraries) for working with lists, dates, files, and so on.
132.94 KB  
Multimedia & Graphics  -  GDTagging 0.1b
GDTagging is a easy to use module for Python 3.0 which can read and write ID3 Tags v1 and v1.1. In future it should also support ID3 Tags v2 and higher.
17.38 KB  
Multimedia & Graphics  -  VPython 2.6.5.23
This is an unusually easy-to-use module for Python that generates navigable 3D animations as a side effect of computations. See vpython.org for current stable downloads and much other information. As of 2012 April 10, source code updates take...
6.58 MB  
File Utilities  -  Febooti fileTweak Hex Editor 3.0
Febooti hex editor is simple and easy to use utility, fully integrated into windows properties pages, that allows to modify file binary content in the very precise and exact way. Hex editor provides significant benefit, namely, the possibility to...
696.32 KB  
Development Editors  -  NCD ActiveX Control 1.0
The NCD ActiveX Control makes it easy to control NCD devices from any programming language that supports ActiveX. It supports most NCD Devices except graphic display products. With it, you may create a complex control application in minutes. The...
425 KB  
Utilities  -  Dylan Code Collection 1.7
A collection of useful libraries written in the Dylan programming language. The intent of this project is to provide easily accessible libraries for people developing applications using Functional Developer and/or Gwydion Dylan.
673.63 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
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