Sdk/Core/TypesHandler.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
is_primitive_or_none
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Javonet::Sdk::Core::TypesHandler;
2 use strict;
3 use warnings FATAL => 'all';
4 use Exporter qw(import);
5 our @EXPORT = qw(is_primitive_or_none);
6
7 sub is_primitive_or_none {
8 my ($self, $item) = @_;
9 return (!defined $item || $item =~ /^(?:-?\d+(?:\.\d+)?|true|false)$/ || !ref $item);
10 }
11
12
13 1;