File Coverage

blib/lib/Config/XrmDatabase/Types.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Config::XrmDatabase::Types;
2              
3             # ABSTRACT: Types for Config::XrmDatabase;
4              
5 8     8   63 use strict;
  8         18  
  8         312  
6 8     8   42 use warnings;
  8         17  
  8         486  
7              
8             our $VERSION = '0.06';
9              
10 8     8   5065 use Type::Utils -all;
  8         371697  
  8         98  
11 8     8   24736 use Types::Standard qw( Enum CodeRef );
  8         538874  
  8         135  
12 8         39 use Type::Library -base,
13 8     8   8485 -declare => qw( QueryReturnValue OnQueryFailure );
  8         22  
14              
15 8     8   4742 use namespace::clean;
  8         20  
  8         75  
16              
17             declare QueryReturnValue,
18             as Enum[ \1, 'value', 'reference', 'all' ];
19              
20             declare OnQueryFailure,
21             as Enum( [ \1, 'undef', 'throw']) | CodeRef;
22              
23             #
24             # This file is part of Config-XrmDatabase
25             #
26             # This software is Copyright (c) 2021 by Smithsonian Astrophysical Observatory.
27             #
28             # This is free software, licensed under:
29             #
30             # The GNU General Public License, Version 3, June 2007
31             #
32              
33             1;
34              
35             __END__