File Coverage

blib/lib/DBIx/Class/CDBICompat/NoObjectIndex.pm
Criterion Covered Total %
statement 6 7 85.7
branch n/a
condition n/a
subroutine 2 7 28.5
pod 0 5 0.0
total 8 19 42.1


line stmt bran cond sub pod time code
1             package # hide from PAUSE
2             DBIx::Class::CDBICompat::NoObjectIndex;
3              
4 2     2   1718 use strict;
  2         3  
  2         63  
5 2     2   10 use warnings;
  2         4  
  2         178  
6              
7             =head1 NAME
8              
9             DBIx::Class::CDBICompat::NoObjectIndex - Defines empty methods for object indexing. They do nothing
10              
11             =head1 SYNOPSIS
12              
13             Part of CDBICompat
14              
15             =head1 DESCRIPTION
16              
17             Defines empty methods for object indexing. They do nothing.
18              
19             Using NoObjectIndex instead of LiveObjectIndex and nocache(1) is a little
20             faster because it removes code from the object insert and retrieve chains.
21              
22             =cut
23              
24 0     0 0   sub nocache { return 1 }
25              
26       0 0   sub purge_object_index_every {}
27              
28       0 0   sub purge_dead_from_object_index {}
29              
30       0 0   sub remove_from_object_index {}
31              
32       0 0   sub clear_object_index {}
33              
34             =head1 FURTHER QUESTIONS?
35              
36             Check the list of L.
37              
38             =head1 COPYRIGHT AND LICENSE
39              
40             This module is free software L
41             by the L. You can
42             redistribute it and/or modify it under the same terms as the
43             L.
44              
45             =cut
46              
47             1;