| blib/lib/Algorithm/ConsistentHash/Ketama.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 14 | 14 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 5 | 5 | 100.0 |
| pod | 1 | 1 | 100.0 |
| total | 20 | 20 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Algorithm::ConsistentHash::Ketama; | ||||||
| 2 | 3 | 3 | 15952 | use strict; | |||
| 3 | 6 | ||||||
| 3 | 120 | ||||||
| 3 | 3 | 3 | 1242 | use Algorithm::ConsistentHash::Ketama::Bucket; | |||
| 3 | 4 | ||||||
| 3 | 85 | ||||||
| 4 | 3 | 3 | 15 | use XSLoader; | |||
| 3 | 4 | ||||||
| 3 | 149 | ||||||
| 5 | our $VERSION; | ||||||
| 6 | |||||||
| 7 | BEGIN { | ||||||
| 8 | 3 | 3 | 5 | $VERSION = '0.00011'; | |||
| 9 | 3 | 1642 | XSLoader::load( __PACKAGE__, $VERSION ); | ||||
| 10 | } | ||||||
| 11 | |||||||
| 12 | sub new { | ||||||
| 13 | 3 | 3 | 1 | 1295 | my $class = shift; | ||
| 14 | 3 | 42 | my $self = $class->xs_create(); | ||||
| 15 | 3 | 10 | return $self; | ||||
| 16 | } | ||||||
| 17 | |||||||
| 18 | 1; | ||||||
| 19 | |||||||
| 20 | __END__ |