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 | 4 | 4 | 16 | use strict; | |||
4 | 6 | ||||||
4 | 127 | ||||||
3 | 4 | 4 | 15 | use warnings; | |||
4 | 4 | ||||||
4 | 101 | ||||||
4 | 4 | 4 | 14 | use base qw(Exporter); | |||
4 | 38 | ||||||
4 | 385 | ||||||
5 | require Couchbase::Client::Errors_const; | ||||||
6 | our @EXPORT; | ||||||
7 | |||||||
8 | |||||||
9 | if(!caller) { | ||||||
10 | 4 | 4 | 17 | no strict 'refs'; | |||
4 | 4 | ||||||
4 | 286 | ||||||
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__ |