blib/lib/Couchbase/Client/Errors.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 16 | 16 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Couchbase::Client::Errors; | ||||||
2 | 3 | 3 | 13 | use strict; | |||
3 | 4 | ||||||
3 | 90 | ||||||
3 | 3 | 3 | 12 | use warnings; | |||
3 | 3 | ||||||
3 | 99 | ||||||
4 | 3 | 3 | 13 | use base qw(Exporter); | |||
3 | 20 | ||||||
3 | 357 | ||||||
5 | require Couchbase::Client::Errors_const; | ||||||
6 | our @EXPORT; | ||||||
7 | |||||||
8 | |||||||
9 | if(!caller) { | ||||||
10 | 3 | 3 | 13 | no strict 'refs'; | |||
3 | 8 | ||||||
3 | 226 | ||||||
11 | foreach my $const (@EXPORT) { | ||||||
12 | my $val = &{$const}(); | ||||||
13 | printf("NAME: %s, VALUE=%d\n", | ||||||
14 | $const, $val); | ||||||
15 | } | ||||||
16 | } | ||||||
17 | |||||||
18 | 1; | ||||||
19 | |||||||
20 | __END__ |