lib/Flux/Format.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
wrap
1.0
CRAP 1.0
« lib/Flux/Mapper/Anon.pm ↑ Summary lib/Flux/In.pm »
1 package Flux::Format;
2 {
3 1 $Flux::Format::VERSION = '1.03';
4 }
5  
6 # ABSTRACT: interface for symmetric two-way formatting of any storage.
7  
8  
9 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use Flux::Storage::Formatted;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 requires 'encoder';
14  
15 1 requires 'decoder';
16  
17 1 ▶sub wrap {
Subroutine wrap: called CC=1 SCAR=0.0
Pod documented
18 1 my $self = shift;
19 1 my ($storage) = @_;
20  
21 1 return Flux::Storage::Formatted->new({ format => $self, storage => $storage });
22 }
23  
24  
25 1 1;
26  
27 __END__
« lib/Flux/Mapper/Anon.pm ↑ Summary lib/Flux/In.pm »