blib/lib/Bio/SFF/Index.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 3 | 5 | 60.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 1 | 2 | 50.0 |
pod | 1 | 1 | 100.0 |
total | 5 | 8 | 62.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Bio::SFF::Index; | ||||||
2 | { | ||||||
3 | $Bio::SFF::Index::VERSION = '0.007'; | ||||||
4 | } | ||||||
5 | |||||||
6 | 1 | 1 | 6 | use Moo; | |||
1 | 2 | ||||||
1 | 7 | ||||||
7 | |||||||
8 | has manifest => ( | ||||||
9 | is => 'ro', | ||||||
10 | required => 1, | ||||||
11 | ); | ||||||
12 | |||||||
13 | has _offsets => ( | ||||||
14 | is => 'ro', | ||||||
15 | isa => sub { ref($_[0]) eq 'HASH' }, | ||||||
16 | init_arg => 'offsets', | ||||||
17 | required => 1, | ||||||
18 | ); | ||||||
19 | |||||||
20 | sub offset_of { | ||||||
21 | 0 | 0 | 1 | my ($self, $name) = @_; | |||
22 | 0 | return $self->_offsets->{$name}; | |||||
23 | } | ||||||
24 | |||||||
25 | 1; | ||||||
26 | |||||||
27 | #ABSTRACT: SFF index object | ||||||
28 | |||||||
29 | __END__ |