Main > Free Download Search >

Free test functions software for linux

test functions

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 5471
Database Functions 1.0

Database Functions 1.0


Database Functions is a PHP class that can be used to build and execute MySQL database queries. more>>
Database Functions is a PHP class that can be used to build and execute MySQL database queries.

It can build SELECT, INSERT, UPDATE and DELETE queries from lists of parameters and values.

The class can also execute the generated queries and retrieve the SELECT query results into associative arrays.

<<less
Download (MB)
Added: 2007-07-19 License: GPL (GNU General Public License) Price:
830 downloads
Bio::NEXUS::Functions 0.67

Bio::NEXUS::Functions 0.67


Bio::NEXUS::Functions is a Perl module that provides private utility functions for the module. more>>
Bio::NEXUS::Functions is a Perl module that provides private utility functions for the module.

This package provides private functions that are not object-specific.

<<less
Download (0.15MB)
Added: 2006-12-19 License: Perl Artistic License Price:
1039 downloads
Test::Exception 0.25

Test::Exception 0.25


Test::Exception is a Perl module to test exception based code. more>>
Test::Exception is a Perl module to test exception based code.

SYNOPSIS

use Test::More tests => 5;
use Test::Exception;

# or if you dont need Test::More

use Test::Exception tests => 5;

# then...

# Check that something died
dies_ok { $foo->method1 } expecting to die;

# Check that something did not die
lives_ok { $foo->method2 } expecting to live;

# Check that the stringified exception matches given regex
throws_ok { $foo->method3 } qr/division by zero/, zero caught okay;

# Check an exception of the given class (or subclass) is thrown
throws_ok { $foo->method4 } Error::Simple, simple error thrown;

# all Test::Exceptions subroutines are guaranteed to preserve the state
# of $@ so you can do things like this after throws_ok and dies_ok
like $@, what the stringified exception should look like;

# Check that a test runs without an exception
lives_and { is $foo->method, 42 } method is 42;

# or if you dont like prototyped functions

dies_ok( sub { $foo->method1 }, expecting to die );
lives_ok( sub { $foo->method2 }, expecting to live );
throws_ok( sub { $foo->method3 }, qr/division by zero/,
zero caught okay );
throws_ok( sub { $foo->method4 }, Error::Simple,
simple error thrown );
lives_and( sub { is $foo->method, 42 }, method is 42 );

<<less
Download (0.011MB)
Added: 2007-05-03 License: Perl Artistic License Price:
904 downloads
Test soon 0.59

Test soon 0.59


Test soon project is a testing framework trying to enable you to write tests quickly. more>>
Test soon project is a testing framework trying to enable you to write tests quickly, organize them easily and still being flexible.

The goal is to utilize the strengths of C++ while minimizing the impact of its weaknesses.

<<less
Download (MB)
Added: 2007-07-01 License: zlib/libpng License Price:
846 downloads
Data management and GTK functions 0.08

Data management and GTK functions 0.08


Data management and GTK functions is a package of various utility programs that were used in building applications. more>>
Data management and GTK functions is a package of various utility programs that were used in building the other applications on this web site.
The source code is already included with the other applications. This package includes documentation that will make it easier to use these programs for other projects. A menu-driven test program for most of the utilities is also included.
Main features:
- MatchWild compare a string to a string with multiple wildcards (* and ? characters)
- SearchWild search for files matching a pathname with wildcards anywhere
- convDS convert double to string with specified digits of precision
- bsearch binary search function
- HeapSort heapsort using a callback to compare records, allowing any kind of sort
- HashTab hash table C++ class (fast string store and search)
- Queue queue C++ class (push, pop newest, pop oldest) (thread safe)
- Tree C++ class, store and find data by set of names or numbers (sparse array)
- GTK menus build GTK menus and toolbars with 1/3 as much code
- zlock use GTK in threads more easily and safely
- wprintf printf interface to scrolling windows
- zdialog build GTK dialogs with 1/3 the code and 1/10 the reference docs
- pixbuf_rotate rotate a GDK pixbuf through any angle (like 56.7 degrees)
<<less
Download (0.21MB)
Added: 2007-07-26 License: GPL (GNU General Public License) Price:
821 downloads
Test::MultiFork 0.6

Test::MultiFork 0.6


Test::MultiFork is a test suite that has support for multi-process programs. more>>
Test::MultiFork is a test suite that has support for multi-process programs.

SYNOPSIS

use Test::MultiFork;

($name, $letter, $number) = procname([new name])
lockcommon()
@oldvalues = getcommon()
setcommon(@newvalues)
unlockcommon()

use Test::MultiFork qw(groupwait setgroup dofork stderr bail_on_bad_plan)

groupwait([$tag])
$oldgroup = setgroup([$newgroup])
dofork(fork_specification)

This test module is to support creating test suites for programs and modules that run as multiple processes and do mostly blocking I/O.

Test::MultiFork handles the forking so that it can set up each child to coordinate the output. The output from each child fork is redirected to the parent. Each fork produces normal test output -- possibly using normal test modules like Test::Simple. The output is collected and rewritten by the parent process.

Each child fork has a letter and number designation. The forks are created by dofork(). Dofork takes a specifiction on the form: ([a-z](d*))+. That is to say, one or more lower-case letters, each optionally followd by a number. The number says how many children to fork for that letter (default one). The specifier ab2c3 means have one a child (numbered 1); two b children (numbered 1, 2); and three c children (numbered 1, 2, 3).

To aid in writing tests, Test::MultiFork will pass data between the child processes. The data is test-writer defined.

<<less
Download (0.010MB)
Added: 2007-05-04 License: Perl Artistic License Price:
903 downloads
Test::Unit 0.25

Test::Unit 0.25


Test::Unit is the main PerlUnit testing framework. more>>
Test::Unit is the main PerlUnit testing framework.

SYNOPSIS

This package provides only the project version number, copyright texts, and a framework overview in POD format.

This framework is intended to support unit testing in an object-oriented development paradigm (with support for inheritance of tests etc.) and is derived from the JUnit testing framework for Java by Kent Beck and Erich Gamma. To start learning how to use this framework, see Test::Unit::TestCase and Test::Unit::TestSuite. (There will also eventually be a tutorial in Test::Unit::Tutorial.

However Test::Unit::Procedural is the procedural style interface to a sophisticated unit testing framework for Perl that . Test::Unit is intended to provide a simpler interface to the framework that is more suitable for use in a scripting style environment. Therefore, Test::Unit does not provide much support for an object-oriented approach to unit testing.

<<less
Download (0.31MB)
Added: 2007-05-07 License: Perl Artistic License Price:
900 downloads
Test::Chunks 0.39

Test::Chunks 0.39


Test::Chunks is a Data Driven Testing Framework. more>>
Test::Chunks is a Data Driven Testing Framework.

NOTE - This module has been deprecated and replaced by Test::Base. This is basically just a renaming of the module. Test::Chunks was not the best name for this module. Please discontinue using Test::Chunks and switch to Test::Base.
Helpful Hint: change all occurences of chunk to block in your test code, and everything should work exactly the same.

SYNOPSIS

use Test::Chunks;
use Pod::Simple;

delimiters qw(=== +++);
plan tests => 1 * chunks;

for my $chunk (chunks) {
# Note that this code is conceptual only. Pod::Simple is not so
# simple as to provide a simple pod_to_html function.
is(
Pod::Simple::pod_to_html($chunk->pod),
$chunk->text,
$chunk->name,
);
}

__END__

=== Header 1 Test

This is an optional description
of this particular test.

+++ pod
=head1 The Main Event
+++ html
< h1 >The Main Event< /h1 >


=== List Test
+++ pod
=over
=item * one
=item * two
=back

+++ html
< ul >
< li >one< /li >
< li >two< /li >
< /ul >

There are many testing situations where you have a set of inputs and a set of expected outputs and you want to make sure your process turns each input chunk into the corresponding output chunk. Test::Chunks allows you do this with a minimal amount of code.

<<less
Download (0.032MB)
Added: 2006-06-16 License: Perl Artistic License Price:
1225 downloads
Test::Differences 0.47

Test::Differences 0.47


Test::Differences Perl module contains test strings and data structures and show differences if not ok. more>>
Test::Differences Perl module contains test strings and data structures and show differences if not ok.

SYNOPSIS

use Test; ## Or use Test::More
use Test::Differences;

eq_or_diff $got, "anbncn", "testing strings";
eq_or_diff @got, [qw( a b c )], "testing arrays";

## Passing options:
eq_or_diff $got, $expected, $name, { context => 300 }; ## options

## Using with DBI-like data structures

use DBI;

... open connection & prepare statement and @expected_... here...

eq_or_diff $sth->fetchall_arrayref, @expected_arrays "testing DBI arrays";
eq_or_diff $sth->fetchall_hashref, @expected_hashes, "testing DBI hashes";

## To force textual or data line numbering (text lines are numbered 1..):
eq_or_diff_text ...;
eq_or_diff_data ...;

<<less
Download (0.008MB)
Added: 2007-07-18 License: Perl Artistic License Price:
828 downloads
Test::Version 0.02

Test::Version 0.02


Test::Version is a Perl module that has the role to check for VERSION information in modules. more>>
Test::Version is a Perl module that has the role to check for VERSION information in modules.

SYNOPSIS

use Test::Version;
plan tests => $num_tests;
version_ok( $file );

FUNCTIONS

version_ok( FILENAME, [EXPECTED, [NAME] ] )
version_ok requires a filename and returns one of the three values:

NO_FILE Could not find the file
NO_VERSION File had no VERSION information
VERSION_OK VERSION information exists

version_ok okays a test without an expected result if it finds VERSION information, or if an expected result is specified and it finds that condition. For instance, if you know there is no VERSION information,

version_ok( $file, NO_VERSION );

When it fails, version_ok will show error information.

The optional third argument NAME is the name of the test which version_ok passes through to Test::Builder. Otherwise, it choose a default test name "VERSION test for FILENAME".

<<less
Download (0.005MB)
Added: 2007-05-07 License: Perl Artistic License Price:
902 downloads
Test::Unit::InnerClass 0.14

Test::Unit::InnerClass 0.14


Test::Unit::InnerClass is a unit testing framework helper class. more>>
Test::Unit::InnerClass is a unit testing framework helper class.

SYNOPSIS

This class is not intended to be used directly

This class is used by the framework to emulate the anonymous inner classes feature of Java. It is much easier to port Java to Perl using this class.

<<less
Download (0.044MB)
Added: 2007-06-13 License: Perl Artistic License Price:
863 downloads
Test::Dependencies 0.08

Test::Dependencies 0.08


Test::Dependencies is a Perl module to ensure that your Makefile.PL specifies all module dependencies. more>>
Test::Dependencies is a Perl module to ensure that your Makefile.PL specifies all module dependencies.

SYNOPSIS

In your t/00-dependencies.t:
use Test::Dependencies exclude =>
[qw/ Your::Namespace Some::Other::Namespace /];

ok_dependencies();

Makes sure that all of the modules that are used are listed in the Makefile.PL as dependencies.

EXPORTED FUNCTIONS

ok_dependencies

This should be the only test called in the test file. It scans bin/ and lib/ for module usage and t/ for build usage. It will then test that all modules used are listed as required in Makefile.PL, all modules used in t/ are listed as build required, that all modules listed are actually used, and that modules that are listed are not in the core list.

<<less
Download (0.021MB)
Added: 2007-01-18 License: Perl Artistic License Price:
1009 downloads
Test::URI 1.06

Test::URI 1.06


Test::URI is a Perl module that can check Uniform Resource Identifiers (URIs). more>>
Test::URI is a Perl module that can check Uniform Resource Identifiers (URIs).

SYNOPSIS

use Test::More tests => 5;
use Test::URI;

# http://www.example.com:8080/index.html#name

uri_scheme_ok( $uri, http );
uri_host_ok( $uri, www.example.com );
uri_port_ok( $uri, 8080 );
uri_path_ok( $uri, /index.html );
uri_fragment_ok( $uri, name );

FUNCTIONS

uri_scheme_ok( STRING|URI, SCHEME )

Ok is the STRING is a valid URI, in any format that URI accepts, and the URI uses the same SCHEME (i.e. protocol: http, ftp, ...). SCHEME is not case sensitive.

STRING can be an URI object.

uri_host_ok( STRING|URI, HOST )

Ok is the STRING is a valid URI, in any format that URI accepts, and the URI uses the same HOST. HOST is not case sensitive.

Not Ok is the URI scheme does not have a host portion.

STRING can be an URI object.

uri_port_ok( STRING|URI, PORT )

Ok is the STRING is a valid URI, in any format that URI accepts, and the URI uses the same PORT.

Not Ok is the URI scheme does not have a port portion.

STRING can be an URI object.

uri_canonical_ok

UNIMPLEMENTED. Im not sure why I thought this should be a test. If anyone else knows, Ill implement it.

uri_path_ok( STRING|URI, PATH )

Ok is the STRING is a valid URI, in any format that URI accepts, and the URI has the path PATH. Remember that paths start with a /, even if it doesnt look like there is anything after the host parts.

STRING can be an URI object.

uri_fragment_ok( STRING|URI, FRAGMENT )

Ok is the STRING is a valid URI, in any format that URI accepts, and the URI has the fragment FRAGMENT.

STRING can be an URI object.

<<less
Download (0.005MB)
Added: 2007-05-07 License: Perl Artistic License Price:
900 downloads
Test::Manifest 1.17

Test::Manifest 1.17


Test::Manifest is a Perl module created to interact with a t/test_manifest file. more>>
Test::Manifest is a Perl module created to interact with a t/test_manifest file.

SYNOPSIS

# in Makefile.PL
eval "use Test::Manifest";

# in the file t/test_manifest, list the tests you want
# to run

Test::Harness assumes that you want to run all of the .t files in the t/ directory in ascii-betical order during make test unless you say otherwise. This leads to some interesting naming schemes for test files to get them in the desired order. This interesting names ossify when they get into source control, and get even more interesting as more tests show up.

Test::Manifest overrides the default behaviour by replacing the test_via_harness target in the Makefile. Instead of running at the t/*.t files in ascii-betical order, it looks in the t/test_manifest file to find out which tests you want to run and the order in which you want to run them. It constructs the right value for MakeMaker to do the right thing.

In t/test_manifest, simply list the tests that you want to run. Their order in the file is the order in which they run. You can comment lines with a #, just like in Perl, and Test::Manifest will strip leading and trailing whitespace from each line. It also checks that the specified file is actually in the t/ directory. If the file does not exist, it does not put its name in the list of test files to run.

Optionally, you can add a number after the test name in test_manifest to define sets of tests. See get_t_files() for more information.

Functions

run_t_manifest( TEST_VERBOSE, INST_LIB, INST_ARCHLIB, TEST_LEVEL )

Run all of the files in t/test_manifest through Test::Harness:runtests in the order they appear in the file.

eval "use Test::Manifest";
get_t_files( [LEVEL] )

In scalar context it returns a single string that you can use directly in WriteMakefile(). In list context it returns a list of the files it found in t/test_manifest.

If a t/test_manifest file does not exist, get_t_files() returns nothing.
get_t_files() warns you if it cant find t/test_manifest, or if entries start with "t/". It skips blank lines, and strips Perl style comments from the file.

Each line in t/test_manifest can have three parts: the test name, the test level (a floating point number), and a comment. By default, the test level is 1.

test_name.t 2 #Run this only for level 2 testing

Without an argument, get_t_files() returns all the test files it finds. With an argument that is true (so you cant use 0 as a level) and is a number, it skips tests with a level greater than that argument. You can then define sets of tests and choose a set to run. For instance, you might create a set for end users, but also add on a set for deeper testing for developers.

Experimentally, you can include a command to grab test names from another file. The command starts with a ; to distinguish it from a true filename. The filename (currently) is relative to the current working directory, unlike the filenames, which are relative to t/. The filenames in the included are still relative to t/.

;include t/file_with_other_test_names.txt

To select sets of tests, specify the level in the variable TEST_LEVEL during `make test`.

make test # run all tests no matter the level
make test TEST_LEVEL=2 # run all tests level 2 and below

make_test_manifest()

Creates the test_manifest file in the t directory by reading the contents of the t directory.

TO DO: specify tests in argument lists.

TO DO: specify files to skip.

manifest_name()

Returns the name of the test manifest file, relative to t/

<<less
Download (0.007MB)
Added: 2007-05-04 License: Perl Artistic License Price:
904 downloads
Test::ISBN 1.09

Test::ISBN 1.09


Test::ISBN is a Perl module to check international standard book numbers. more>>
Test::ISBN is a Perl module to check international standard book numbers.

SYNOPSIS

use Test::More tests => 1;
use Test::ISBN;

isbn_ok( $isbn );

Functions

isbn_ok( STRING )

Ok is the STRING is a valid ISBN, in any format that Business::ISBN accepts. This function only checks the checksum. The publisher and country codes might be invalid even though the checksum is valid.

isbn_country_ok( STRING, COUNTRY )

Ok is the STRING is a valid ISBN and its country code is the same as COUNTRY.

isbn_publisher_ok( STRING, PUBLISHER )

Ok is the STRING is a valid ISBN and its publisher code is the same as PUBLISHER.

<<less
Download (0.004MB)
Added: 2007-05-04 License: Perl Artistic License Price:
903 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5