File Coverage

blib/lib/KiokuDB/Role/Immutable/Transitive.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             package KiokuDB::Role::Immutable::Transitive;
2 3     3   1465 use Moose::Role;
  3         7  
  3         23  
3              
4 3     3   13217 use namespace::autoclean;
  3         2282  
  3         17  
5              
6             with qw(
7             KiokuDB::Role::Immutable
8             KiokuDB::Role::Cacheable
9             );
10              
11              
12             # ex: set sw=4 et:
13              
14             __PACKAGE__
15              
16             __END__
17              
18             =pod
19              
20             =head1 NAME
21              
22             KiokuDB::Role::Immutable::Transitive - A role for immutable objects that only
23             point at other such objects.
24              
25             =head1 SYNOPSIS
26              
27             with qw(KiokuDB::Role::Immutable::Transitive);
28              
29             =head1 DESCRIPTION
30              
31             This role makes a stronger promise than L<KiokuDB::Role::Immutable>, namely
32             that this object and all objects it points to are immutable.
33              
34             These objects can be freely cached as live instances, since none of the data
35             they keep live is ever updated.
36              
37             =cut
38              
39              
40