blib/lib/Data/CompactReadonly/V0/Scalar/HeaderOnly.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 14 | 14 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 18 | 18 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Data::CompactReadonly::V0::Scalar::HeaderOnly; | ||||||
2 | our $VERSION = '0.1.0'; | ||||||
3 | |||||||
4 | 5 | 5 | 43 | use warnings; | |||
5 | 11 | ||||||
5 | 167 | ||||||
5 | 5 | 5 | 27 | use strict; | |||
5 | 10 | ||||||
5 | 109 | ||||||
6 | 5 | 5 | 25 | use base 'Data::CompactReadonly::V0::Scalar'; | |||
5 | 11 | ||||||
5 | 938 | ||||||
7 | |||||||
8 | sub _create { | ||||||
9 | 7 | 7 | 38 | my($class, %args) = @_; | |||
10 | 7 | 18 | my $fh = $args{fh}; | ||||
11 | 7 | 47 | $class->_stash_already_seen(%args); | ||||
12 | 7 | 52 | print $fh $class->_type_byte_from_class(); | ||||
13 | 7 | 70 | $class->_set_next_free_ptr(%args); | ||||
14 | } | ||||||
15 | |||||||
16 | 1; |