Generator/Handler/Atom.pm

filter: Statementstmt 100% 9 / 9 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 86.6% 13 / 15 CC 2 SCAR 4.3
CC
2
Cov
91%
process
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Generator.pm ↑ Summary Generator/Handler/Array.pm »
1 package JSON::Schema::Generator::Handler::Atom;
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 4 ▶sub process {
Subroutine process: called CC=2 SCAR=7.2
Pod undocumented
7 4 my ($class, $atom_type, $examples, $dispatch) = @_;
8 return +{
9 4 ▶ type => $atom_type->name,
Branch: 1 branch
BranchTrueFalseTotal
$atom_type->isa('JSON::TypeInference::Type::Unknown') ? : 0 4 4
10 ($atom_type->isa('JSON::TypeInference::Type::Unknown') ? () : (example => $examples->[0])),
11 };
12 }
13  
14 2 1;
« Generator.pm ↑ Summary Generator/Handler/Array.pm »