| 1 | package Test::Proto::HashRef; | ||
| 2 | 11 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 11 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 11 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 11 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 11 | extends 'Test::Proto::Base'; | |
| 7 | 11 | with( 'Test::Proto::Role::Value', 'Test::Proto::Role::HashRef' ); | |
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | Test::Proto::HashRef - Prototype with methods for hashrefs | ||
| 12 | |||
| 13 | =head1 SYNOPSIS | ||
| 14 | |||
| 15 | use Test::Proto::HashRef; | ||
| 16 | my $pHr = Test::Proto::HashRef->new(); | ||
| 17 | $pHr->enumerate(2, [['a','b'],['c','d']]); | ||
| 18 | $pHr->ok({a=>'b', c=>'d'}); | ||
| 19 | |||
| 20 | Use this class for validating hashes and hashrefs. If you have hashes, you must put them in a reference first. | ||
| 21 | |||
| 22 | =head1 METHODS | ||
| 23 | |||
| 24 | All methods are provided by L<Test::Proto::Base> or L<Test::Proto::Role::HashRef>. | ||
| 25 | |||
| 26 | =head1 OTHER INFORMATION | ||
| 27 | |||
| 28 | For author, version, bug reports, support, etc, please see L<Test::Proto>. | ||
| 29 | |||
| 30 | =cut | ||
| 31 | |||
| 32 | 11 | 1; | |