Scroll to navigation

Test::Data(3pm) User Contributed Perl Documentation Test::Data(3pm)

NAME

Test::Data -- test functions for particular variable types

SYNOPSIS

use Test::Data qw(Scalar Array Hash Function);

DESCRIPTION

Test::Data provides utility functions to check properties and values of data and variables.

Functions

Plug-in modules define functions for each data type. See the appropriate module.

How it works

The Test::Data module simply emports functions from Test::Data::* modules. Each module defines a self-contained function, and puts that function name into @EXPORT. Test::Data defines its own import function, but that does not matter to the plug-in modules.

If you want to write a plug-in module, follow the example of one that already exists. Name the module Test::Data::Foo, where you replace Foo with the right name. Test::Data should automatically find it.

BUGS

I'm not a very good Windows Perler, so some things don't work as they should on Windows. I recently got a Windows box so I can test things, but if you run into problems, I can use all the patches or advice you care to send.

SEE ALSO

Test::Data::Scalar, Test::Data::Array, Test::Data::Hash, Test::Data::Function, Test::Builder

SOURCE AVAILABILITY

This source is in Github:

        https://github.com/briandfoy/test-data

AUTHOR

brian d foy, "<briandfoy@pobox.com>"

COPYRIGHT AND LICENSE

Copyright © 2002-2024, brian d foy <briandfoy@pobox.com>. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

2024-03-16 perl v5.38.2