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 31.042.577 Times

Test::DataDriven 0.03

Company: Mattia Barbon
Date Added: September 11, 2013  |  Visits: 243


Report Broken Link
Printer Friendly Version

Product Homepage
Download (16 downloads)

Test::Base is great Perl module for writing data driven tests, but sometimes you need to test things that cannot be easily expressed using the filter-and-compare-output approach.<br /><br />Test::DataDriven builds upon Test::Base adding the ability to declare actions to be run for each section of each test block. In particular, the processing of each block is divided in three phases: "begin", "run" and "end". The "begin" phase can be used to assess or establish the preconditions for the test. The "run" phase is used to perform some actions. The "end" phase can be used to check the side effects of the "run" phase.<br /><br />SYNOPSIS<br /><br />In the test module:<br /><br /> # t/lib/<br /> package MyTest;<br /><br /> use Test::DataDriven::Plugin -base;<br /> __PACKAGE__->register;<br /><br /> my $time;<br /> my $result;<br /><br /> sub check_before : Begin(add1) {<br /> my( $block, $section_name, @data ) = @_;<br /> $time = time();<br /> }<br /><br /> sub do_that : Run(add1) {<br /> my( $block, $section_name, @data ) = @_;<br /> $result = add_1( $data[0] );<br /> }<br /><br /> sub check_after : End(result) {<br /> my( $block, $section_name, @data ) = @_;<br /> is( $result, $data[0] );<br /> ok( time() - $time < 1 ); # check side effects<br /> }<br /><br />In the test file:<br /><br /> use MyTest;<br /> use Test::More tests => 4;<br /><br /> Test::DataDriven->run;<br /><br /> __END__<br /><br /> === Test 1<br /> --- add1 chomp<br /> 3<br /> --- result<br /> 4<br /><br /> === Test 1<br /> --- add1 chomp<br /> 7<br /> --- result<br /> 8

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: 3d3d3d Actions Beginadd Block Check Chomp Data Datadriven Driven Effects Module Mytest Phase Quotbeginquot Quotendquot Quotrunquot Result Section Test Test Datadriven Testbase Tests
Users rating: 0/10

License: Freeware Size: 10.24 KB
Libraries  -  Test::Data 1.20
Test::Data is a Perl module to test functions for particular variable types. SYNOPSIS use Test::Data qw(Scalar Array Hash Function); Test::Data provides utility functions to check properties and values of data and variables. Functions...
8.19 KB  
Database Tools  -  TextSQL 1.0
TextSQL can parse some types of SQL queries and translate the queries into actions to store and retrieve data from text files.CREATE TABLE, INSERT and SELECT SQL queries are supported.
10 KB  
Business  -  Eventbee Real Time Attendee Check-In 1.3.2
Allows real time attendee Check-In at the venue. On the spot syncing of Check-In data with the back end servers allows parallel attendee Check-In using multiple iPhones. Requirements: iOS 6.0 or later. Compatible with iPhone, iPad, and iPod...
716.8 KB  
Libraries  -  File::Data 1.12
File::Data is a Perl module as a interface to file data. Wraps all the accessing of a file into a convenient set of calls for reading and writing data, including a simple regex interface. Note that the file needs to exist prior to using this...
13.31 KB  
Backup Utilities  -  Free BKF Viewer Software 1.0
If you want to check the data inside BKF files then try free BKF viewer software which is a suitable utility to perform this process. And the good thing is that it is completely free tool. It is free of bugs, malware, adware, and spyware. It...
932 KB  
Modules  -  Block Filter 5.x-1.x-dev 1.0
This filter allows an editor to embed any available block into content by using the blocks module and delta in the following syntaxt: [block:{module}:{delta}]InstallationUnpack in your modules folder (usually /sites/all/modules/) and enable under...
Modules  -  Block API 6.x-1.0-beta2
Block API is an API to allow module developers to add new types of blocks with set templates, in a similar fashion to defining content types for the node system.Block API by itself is useless and should only be installed if another module requires...
10 KB  
Games  -  Cheat of 4 pic 1 word - Unlimited 1.1
GET UNLIMITED ANSWERS to 4 pics 1 word for FREE!!! Take a screenshot, show possible answers for you immediately. Check updated data file from Interent, get up-to-date answers for the newest game. Requirements: iOS 5.0 or later....
2.6 MB  
Productivity  -  ELECOM QR Code Reader 1.0.3
"ELECOM QR Code Reader" can recognize QR codes for address books and text. Can easily register recognized address book data into address books. You can also make actions for each piece of data: call phone numbers, mail email addresses, display...
3.3 MB  
Database Tools  -  Simple Data Grid 1.0
Simple Data Grid can be used to display MySQL database query result data in an HTML table grid.There are classes to define details of the headers and body of table grid. There is also a class for executing MySQL database queries and return the...
81.92 KB  
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, 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