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   58 use strict;
  8         15  
  8         288  
6 8     8   43 use warnings;
  8         25  
  8         382  
7              
8             our $VERSION = '0.04';
9              
10 8     8   4992 use Type::Utils -all;
  8         369967  
  8         98  
11 8     8   24574 use Types::Standard qw( Enum CodeRef );
  8         539466  
  8         114  
12 8         41 use Type::Library -base,
13 8     8   8227 -declare => qw( QueryReturnValue OnQueryFailure );
  8         22  
14              
15 8     8   4583 use namespace::clean;
  8         21  
  8         69  
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__