Generator/Handler/Maybe/Lifted.pm

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