Sdk/Core/StringEncodingMode.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
get_string_encoding_mode
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Javonet::Sdk::Core::StringEncodingMode;
2 use strict;
3 use warnings;
4 use Moose;
5 use Exporter qw(import);
6 our @EXPORT = qw(get_string_encoding_mode);
7
8 my %string_encoding_mode = (
9 'ASCII' => 0,
10 'UTF8' => 1,
11 'UTF16' => 2,
12 'UTF32' => 3
13 );
14
15 sub get_string_encoding_mode {
16 my ($self, $mode) = @_;
17 return $string_encoding_mode{$mode};
18 }
19
20 no Moose;
21
22 1;