File Coverage

blib/lib/Pg/hstore.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 5 60.0
pod 0 2 0.0
total 12 18 66.6


line stmt bran cond sub pod time code
1             package Pg::hstore;
2              
3 5     5   104750 use 5.010;
  5         14  
  5         149  
4 5     5   18 use strict;
  5         5  
  5         134  
5 5     5   15 use warnings;
  5         12  
  5         758  
6              
7             require Exporter;
8              
9             our @ISA = qw(Exporter);
10              
11             # Items to export into callers namespace by default. Note: do not export
12             # names by default without a very good reason. Use EXPORT_OK instead.
13             # Do not simply export all your public functions/methods/constants.
14              
15             # This allows declaration use Pg::hstore ':all';
16             # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
17             # will save memory.
18             our %EXPORT_TAGS = ( 'all' => [ qw(
19             hstore_encode hstore_decode
20             ) ] );
21              
22             our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
23              
24             our @EXPORT = qw(
25             hstore_encode hstore_decode
26             );
27              
28             our $VERSION = '1.05';
29              
30             require XSLoader;
31             XSLoader::load('Pg::hstore', $VERSION);
32              
33             # Preloaded methods go here.
34             sub hstore_encode($) {
35 0     0 0   Pg::hstore::encode(@_);
36             }
37              
38             sub hstore_decode($) {
39 0     0 0   Pg::hstore::decode(@_);
40             }
41              
42             1;
43             __END__