File Coverage

blib/lib/KiokuDB/Backend/Role/BinarySafe.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::BinarySafe;
4 21     21   10120 use Moose::Role;
  21         38  
  21         126  
5              
6 21     21   78814 use namespace::clean -except => 'meta';
  21         41  
  21         132  
7              
8             __PACKAGE__
9              
10             __END__
11              
12             =pod
13              
14             =head1 NAME
15              
16             KiokuDB::Backend::Role::BinarySafe - An informational role for binary data safe
17             backends.
18              
19             =head1 SYNOPSIS
20              
21             package KiokuDB::Backend::MySpecialBackend;
22             use Moose;
23              
24             use namespace::clean -except => 'meta';
25              
26             with qw(KiokuDB::Backend::Role::BinarySafe);
27              
28             =head1 DESCRIPTION
29              
30             This backend is an informational role for backends which can store arbitrary
31             binary strings, especially utf8 data as bytes (without reinterpreting it as
32             unicode strings when inflating).
33              
34             This mostly has to do with L<KiokuDB::Backend::Serialize> variants (for example
35             L<KiokuDB::Backend::Serialize::Storable> is binary safe, while
36             L<KiokuDB::Backend::Serialize::JSON> is not).
37