Test::Data::Hash(3pm)

Test::Data::Hash3pm

Usage

        use Test::Data qw(Hash);

Overview

This modules provides a collection of test utilities for hash variables. Load the module through Test::Data.

Functions

exists_ok( KEY, HASH [, NAME] )

Ok if the value for KEY in HASH exists. The function does not create KEY in HASH.

not_exists_ok( KEY, HASH [, NAME] )

Ok if the value for KEY in HASH does not exist. The function does not create KEY in HASH.

hash_value_defined_ok( KEY, HASH [, NAME] )

Ok if the value for KEY in HASH is defined. The function does not create KEY in HASH.

hash_value_undef_ok( KEY, HASH [, NAME] )

Ok if the value for KEY in HASH is undefined. The function does not create KEY in HASH.

hash_value_true_ok( KEY, HASH [, NAME] )

Ok if the value for KEY in HASH is true. The function does not create KEY in HASH.

hash_value_false_ok( KEY, HASH [, NAME] )

Ok if the value for KEY in HASH is false. The function does not create KEY in HASH.

Source availability

This source is in Github:

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

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11–12
  6. 13

Author

brian d foy, "<[email protected]>"

From libtest-data-perl 1.248-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.