logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Test::Data::Hash -- test functions for hash variables

Author

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

Description

       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.

Name

       Test::Data::Hash -- test functions for hash variables

See Also

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

Source Availability

       This source is in Github:

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

Synopsis

               use Test::Data qw(Hash);

See Also