| blib/lib/Whelk/Schema/Definition/Empty.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 8 | 8 | 100.0 |
| branch | 1 | 2 | 50.0 |
| condition | 1 | 3 | 33.3 |
| subroutine | 4 | 4 | 100.0 |
| pod | 3 | 3 | 100.0 |
| total | 17 | 20 | 85.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Whelk::Schema::Definition::Empty; | ||||||
| 2 | $Whelk::Schema::Definition::Empty::VERSION = '1.04'; | ||||||
| 3 | 6 | 6 | 4361 | use Whelk::StrictBase 'Whelk::Schema::Definition'; | |||
| 6 | 12 | ||||||
| 6 | 53 | ||||||
| 4 | |||||||
| 5 | sub inhale | ||||||
| 6 | { | ||||||
| 7 | 1 | 1 | 1 | 2 | my ($self, $value) = @_; | ||
| 8 | 1 | 50 | 33 | 3 | return 'empty' if defined $value && length $value; | ||
| 9 | 1 | 2 | return undef; | ||||
| 10 | } | ||||||
| 11 | |||||||
| 12 | sub exhale | ||||||
| 13 | { | ||||||
| 14 | 1 | 1 | 1 | 3 | return ''; | ||
| 15 | } | ||||||
| 16 | |||||||
| 17 | sub empty | ||||||
| 18 | { | ||||||
| 19 | 34 | 34 | 1 | 145 | return !!1; | ||
| 20 | } | ||||||
| 21 | |||||||
| 22 | 1; | ||||||
| 23 |