File Coverage

lib/Log/Unrotate/Cursor.pm
Criterion Covered Total %
statement 6 10 60.0
branch n/a
condition n/a
subroutine 2 6 33.3
pod 4 4 100.0
total 12 20 60.0


line stmt bran cond sub pod time code
1             package Log::Unrotate::Cursor;
2             {
3             $Log::Unrotate::Cursor::VERSION = '1.32';
4             }
5              
6 2     2   15 use strict;
  2         4  
  2         73  
7 2     2   9 use warnings;
  2         4  
  2         3951  
8              
9             =head1 NAME
10              
11             Log::Unrotate::Cursor - abstract class for unrotate cursors
12              
13             =head1 VERSION
14              
15             version 1.32
16              
17             =head1 DECRIPTION
18              
19             C keeps its position in persistent objects called cursors.
20              
21             See C for the default cursor implementation.
22              
23             =head1 METHODS
24              
25             =over
26              
27             =item B
28              
29             Get the hashref with a position data.
30              
31             Data usually includes I, I, I and I keys.
32              
33             =cut
34             sub read($) {
35 0     0 1   die 'not implemented';
36             }
37              
38             =item B
39              
40             Save a new position into the cursor.
41              
42             =cut
43             sub commit($$) {
44 0     0 1   die 'not implemented';
45             }
46              
47             =item B
48              
49             Clean all data from the cursor.
50              
51             =cut
52             sub clean($) {
53 0     0 1   die 'not implemented';
54             }
55              
56             =item B
57              
58             Rollback the cursor to some previous value.
59              
60             Returns 1 on success, 0 on fail.
61              
62             =cut
63              
64             sub rollback($) {
65 0     0 1   return 0;
66             }
67              
68             =back
69              
70             =cut
71              
72             1;