File Coverage

blib/lib/KiokuDB/Backend/Role/UnicodeSafe.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package KiokuDB::Backend::Role::UnicodeSafe;
4 22     22   13915 use Moose::Role;
  22         36  
  22         143  
5              
6 22     22   94152 use namespace::clean -except => 'meta';
  22         40  
  22         150  
7              
8             # informative
9              
10             __PACKAGE__
11              
12             __END__
13              
14             =pod
15              
16             =head1 NAME
17              
18             KiokuDB::Backend::Role::UnicodeSafe - An informational role for binary data safe
19             backends.
20              
21             =head1 SYNOPSIS
22              
23             package KiokuDB::Backend::MySpecialBackend;
24             use Moose;
25              
26             use namespace::clean -except => 'meta';
27              
28             with qw(KiokuDB::Backend::Role::UnicodeSafe);
29              
30             =head1 DESCRIPTION
31              
32             This backend role is an informational role for backends which can
33             store unicode perl strings safely.
34              
35             This means that B<character> strings inserted to the database will not be
36             retreived as B<byte> strings upon deserialization.
37              
38             This mostly has to do with L<KiokuDB::Backend::Serialize> variants.
39