Common/TypeConstraints.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Common.pm ↑ Summary
1 #!/usr/bin/perl
2  
3 package JSON::RPC::Common::TypeConstraints;
4 6 $JSON::RPC::Common::TypeConstraints::VERSION = '0.11';
5 # ABSTRACT: Type constraint library
6  
7 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 6 ▶use MooseX::Types -declare => [qw(JSONDefined JSONValue JSONContainer)];
Subroutine BEGIN: called CC=1 SCAR=0.0
11 6 ▶use MooseX::Types::Moose qw(Value ArrayRef HashRef Undef);
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 6 subtype JSONDefined, as Value|ArrayRef|HashRef;
14  
15 6 subtype JSONValue, as Undef|Value|ArrayRef|HashRef;
16  
17 6 subtype JSONContainer, as ArrayRef|HashRef;
18  
19 6 __PACKAGE__
20  
21 __END__
« Common.pm ↑ Summary