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   59 use strict;
  8         16  
  8         332  
6 8     8   47 use warnings;
  8         22  
  8         411  
7              
8             our $VERSION = '0.05';
9              
10 8     8   4768 use Type::Utils -all;
  8         360587  
  8         81  
11 8     8   24344 use Types::Standard qw( Enum CodeRef );
  8         531505  
  8         120  
12 8         38 use Type::Library -base,
13 8     8   8091 -declare => qw( QueryReturnValue OnQueryFailure );
  8         18  
14              
15 8     8   4528 use namespace::clean;
  8         23  
  8         81  
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__