Proto/HashRef.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Proto/ArrayRef.pm ↑ Summary Proto/TestCase.pm »
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;
« Proto/ArrayRef.pm ↑ Summary Proto/TestCase.pm »