blib/lib/Email/Archive.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 Email::Archive; | ||||||
2 | 3 | 3 | 406111 | use Moo; | |||
3 | 55743 | ||||||
3 | 21 | ||||||
3 | 3 | 3 | 8246 | use Email::Archive::Storage::DBI; | |||
3 | 11 | ||||||
3 | 3392 | ||||||
4 | |||||||
5 | our $VERSION = '0.03'; | ||||||
6 | $VERSION = eval $VERSION; | ||||||
7 | |||||||
8 | has storage => ( | ||||||
9 | is => 'rw', | ||||||
10 | does => 'Email::Archive::Storage', | ||||||
11 | handles => { | ||||||
12 | store => 'store', | ||||||
13 | retrieve => 'retrieve', | ||||||
14 | connect => 'storage_connect', | ||||||
15 | }, | ||||||
16 | lazy => 1, | ||||||
17 | default => sub { Email::Archive::Storage::DBI->new } | ||||||
18 | ); | ||||||
19 | |||||||
20 | 1; | ||||||
21 | |||||||
22 | __END__ |