Test::Type

Functions to validate data types in test files
Download

Test::Type Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Guillaume Aubert
  • Publisher web site:
  • http://search.cpan.org/~aubertg/

Test::Type Tags


Test::Type Description

Test::Type is a Perl module that provides functions to validate data types in test files.SYNOPSIS use Test::Type; # Test strings. ok_string( $variable ); ok_string( $variable, name => 'My variable', ); # Test arrayrefs. ok_arrayref( $variable ); ok_arrayref( $variable, name => 'My variable', ); # Test hashrefs. ok_hashref( $variable ); ok_hashref( $variable, name => 'Test variable', ); # Test coderefs. ok_coderef( $variable ); ok_coderef( $variable, name => 'Test variable', ); # Test numbers. ok_number( $variable ); ok_number( $variable, name => 'Test variable', ); # Test instances. ok_instance( $variable, class => $class, ); ok_instance( $variable, name => 'Test variable', class => $class, );Product's homepage


Test::Type Related Software