BERT.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 2 / 2 totaltotal 100% 36 / 36 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« BERT/Boolean.pm ↑ Summary BERT/Atom.pm »
1 package BERT;
2 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 6 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 6 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 6 our @EXPORT = qw(encode_bert decode_bert);
9  
10 6 our $VERSION = 0.06;
11  
12 6 ▶use BERT::Decoder;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 6 ▶use BERT::Encoder;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 36 ▶sub encode_bert {
Subroutine encode_bert: called CC=1 SCAR=0.0
Pod documented
16 36 my $value = shift;
17 36 my $encoder = BERT::Encoder->new;
18 36 return $encoder->encode($value);
19 }
20  
21 34 ▶sub decode_bert {
Subroutine decode_bert: called CC=1 SCAR=0.0
Pod documented
22 34 my $bert = shift;
23 34 my $decoder = BERT::Decoder->new;
24 34 return $decoder->decode($bert);
25 }
26  
27 6 1;
28  
29 __END__
« BERT/Boolean.pm ↑ Summary BERT/Atom.pm »