blib/lib/Object/Signature.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 18 | 18 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 7 | 7 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 26 | 26 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Object::Signature; | ||||||
2 | |||||||
3 | 2 | 2 | 26303 | use 5.005; | |||
2 | 8 | ||||||
2 | 101 | ||||||
4 | 2 | 2 | 11 | use strict; | |||
2 | 4 | ||||||
2 | 89 | ||||||
5 | 2 | 2 | 2277 | use Storable 2.11 (); | |||
2 | 12791 | ||||||
2 | 1851 | ||||||
6 | 2 | 2 | 376 | use Digest::MD5 2.00 (); | |||
2 | 371 | ||||||
2 | 554 | ||||||
7 | |||||||
8 | 2 | 2 | 14 | use vars qw{$VERSION}; | |||
2 | 4 | ||||||
2 | 1683 | ||||||
9 | BEGIN { | ||||||
10 | 2 | 2 | 1285 | $VERSION = '1.07'; | |||
11 | } | ||||||
12 | |||||||
13 | sub signature { | ||||||
14 | 15 | 15 | 1 | 6115 | local $Storable::canonical = 1; | ||
15 | 15 | 45 | Digest::MD5::md5_hex( | ||||
16 | Storable::nfreeze(shift) | ||||||
17 | ); | ||||||
18 | } | ||||||
19 | |||||||
20 | 1; | ||||||
21 | |||||||
22 | __END__ |