Generator/Handler/Array.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 92.3% 12 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
process
1.0
CRAP 1.0
« Generator/Handler/Atom.pm ↑ Summary Generator/Handler/Union.pm »
1 package JSON::Schema::Generator::Handler::Array;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶sub process {
Subroutine process: called CC=1 SCAR=0.0
Pod undocumented
7 1 my ($class, $array_type, $examples, $dispatch) = @_;
8 return +{
9 1 type => $array_type->name,
10 items => $dispatch->($array_type->element_type, $examples->[0]),
11 };
12 }
13  
14 2 1;
« Generator/Handler/Atom.pm ↑ Summary Generator/Handler/Union.pm »