blib/lib/UR/Value/PerlReference.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 30 SCAR 24.8
CC
3
Cov
0%
underlying_data_types
12.0
BEGIN
2.0
BEGIN
2.0
CRAP 12.0
1 package UR::Value::PerlReference;
2  
3 use strict;
4 use warnings;
5  
6 require UR;
7 our $VERSION = "0.46"; # UR $VERSION;
8  
9 UR::Object::Type->define(
10 class_name => 'UR::Value::PerlReference',
11 is => ['UR::Value'],
12 );
13  
14  
15 my %underlying_data_types;
16 sub underlying_data_types {
17 my $class = shift;
18  
19 my $class_name = ref($class) ? $class->class_name : $class;
20  
21 unless (exists $underlying_data_types{$class_name}) {
22 my($base_type) = ($class_name =~ m/^UR::Value::(.*)/);
23 $underlying_data_types{$class_name} = [$base_type];
24 }
25 return @{$underlying_data_types{$class_name}};
26 }
27  
28  
29 1;
30 #$Header$