Sdk/Core/RuntimeLib.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_runtime
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Javonet::Sdk::Core::RuntimeLib;
2 use warnings;
3 use strict;
4 use Moose;
5 use Exporter qw(import);
6 our @EXPORT = qw(get_runtime);
7
8 my %runtimes = (
9 'Clr' => 0,
10 'Go' => 1,
11 'Jvm' => 2,
12 'Netcore' => 3,
13 'Perl' => 4,
14 'Python' => 5,
15 'Ruby' => 6,
16 'Nodejs' => 7,
17 'Cpp' => 8,
18 'Php' => 9,
19 'Python27' => 10
20 );
21
22 sub get_runtime {
23 my $runtime = shift;
24 return $runtimes{$runtime};
25 }
26
27 no Moose;
28
29 1;