Sdk/Core/PerlCommandType.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
get_command_type
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Javonet::Sdk::Core::PerlCommandType;
2 use strict;
3 use warnings;
4 use Moose;
5 use Exporter qw(import);
6 our @EXPORT = qw(get_command_type);
7
8 my %command_type = (
9 'Value' => 0,
10 'LoadLibrary' => 1,
11 'InvokeStaticMethod' => 2,
12 'GetStaticField' => 3,
13 'SetStaticField' => 4,
14 'CreateClassInstance' => 5,
15 'GetType' => 6,
16 'Reference' => 7,
17 'GetModule' => 8,
18 'InvokeInstanceMethod' => 9,
19 'Exception' => 10,
20 'HeartBeat' => 11,
21 'Cast' => 12,
22 'GetInstanceField' => 13,
23 'Optimize' => 14,
24 'GenerateLib' => 15,
25 'InvokeGlobalFunction' => 16,
26 'DestructReference' => 17,
27 'Array' => 18,
28 'ArrayGetItem' => 19,
29 'ArrayGetSize' => 20,
30 'ArrayGetRank' => 21,
31 'ArraySetItem' => 22,
32 'Array' => 23,
33 'RetrieveArray' => 24,
34 'SetInstanceField' => 25,
35 'InvokeGenericStaticMethod' => 26,
36 'InvokeGenericMethod' => 27,
37 'GetEnumItem' => 28,
38 'GetEnumName' => 29,
39 'GetEnumValue' => 30,
40 'AsRef' => 31,
41 'AsOut' => 32,
42 'GetRefValue' => 33,
43 'EnableNamespace' => 34,
44 'EnableType' => 35,
45 'CreateNull' => 36,
46 'GetStaticMethodAsDelegate' => 37,
47 'GetInstanceMethodAsDelegate' => 38,
48 'PassDelegate' => 39,
49 'InvokeDelegate' => 40,
50 'ConvertType' => 41,
51 'AddEventListener' => 42,
52 'PluginWrapper' => 43,
53 'GetAsyncOperationResult' => 44,
54 'AsKwargs' => 45,
55 'GetResultType' => 46,
56 'GetGlobalField' => 47,
57 'RegisterForUpdate' => 48,
58 'ValueForUpdate' => 49,
59 );
60
61 sub get_command_type {
62 my $command = shift;
63 return $command_type{$command};
64 }
65
66 1;