blib/lib/IO/Framed/X/ErrnoBase.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 18 | 19 | 94.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package IO::Framed::X::ErrnoBase; | ||||||
2 | |||||||
3 | 2 | 2 | 570 | use strict; | |||
2 | 4 | ||||||
2 | 48 | ||||||
4 | 2 | 2 | 8 | use warnings; | |||
2 | 4 | ||||||
2 | 42 | ||||||
5 | |||||||
6 | 2 | 2 | 8 | use parent qw( X::Tiny::Base ); | |||
2 | 3 | ||||||
2 | 10 | ||||||
7 | |||||||
8 | sub errno_is { | ||||||
9 | 2 | 2 | 0 | 159 | my ($self, $name) = @_; | ||
10 | |||||||
11 | 2 | 6 | local $! = $self->get('OS_ERROR'); | ||||
12 | 2 | 100 | 46 | return $!{$name} ? 1 : 0; | |||
13 | } | ||||||
14 | |||||||
15 | 1; |