File Coverage

lib/Neo4j/Types/Generic/ByteArray.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 1 2 100.0
total 28 29 100.0


line stmt bran cond sub pod time code
1 2     2   962 use v5.10.1;
  2         7  
2 2     2   10 use strict;
  2         3  
  2         50  
3 2     2   9 use warnings;
  2         3  
  2         150  
4              
5             package Neo4j::Types::Generic::ByteArray;
6             # ABSTRACT: Generic representation of a Neo4j byte array
7             $Neo4j::Types::Generic::ByteArray::VERSION = '2.00';
8              
9 2     2   11 use parent 'Neo4j::Types::ByteArray';
  2         4  
  2         16  
10              
11 2     2   765 use Encode ();
  2         25253  
  2         268  
12              
13              
14             sub new {
15             # uncoverable pod - see Generic.pod
16 2     2 0 27 my ($class, $bytes) = @_;
17            
18 2         5 $bytes .= '';
19 2         8 Encode::_utf8_off $bytes;
20 2         14 return bless \$bytes, __PACKAGE__;
21             }
22              
23              
24 3     3 1 6 sub as_string { ${$_[0]} }
  3         28  
25              
26              
27             1;