Generator/Handler/Union.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 93.3% 14 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
process
1.0
CRAP 1.0
« Generator/Handler/Array.pm ↑ Summary Generator/Handler/Maybe/Lifted.pm »
1 package JSON::Schema::Generator::Handler::Union;
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, $union_type, $examples, $dispatch) = @_;
8 return +{
9 1 type => [ map { $_->name } @{$union_type->types} ],
10 example => $examples->[0],
11 };
12 }
13  
14 2 1;
« Generator/Handler/Array.pm ↑ Summary Generator/Handler/Maybe/Lifted.pm »