All files / test/Ice/enums Test.js

100% Statements 92/92
100% Branches 1/1
100% Functions 0/0
100% Lines 92/92

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 931x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
// Copyright (c) ZeroC, Inc.
 
// slice2js version 3.9.0-alpha.0
// <auto-generated>Generated from Slice file 'Test.ice'.</auto-generated>
 
/* eslint-disable */
/* jshint ignore: start */
 
import { Ice } from "@zeroc/ice";
 
export const Test = {};
 
Object.defineProperty(Test, 'ByteConst1', {
    enumerable: true,
    value: 10
});
 
Object.defineProperty(Test, 'ShortConst1', {
    enumerable: true,
    value: 20
});
 
Object.defineProperty(Test, 'IntConst1', {
    enumerable: true,
    value: 30
});
 
Object.defineProperty(Test, 'LongConst1', {
    enumerable: true,
    value: 40n
});
 
Object.defineProperty(Test, 'ByteConst2', {
    enumerable: true,
    value: 126
});
 
Object.defineProperty(Test, 'ShortConst2', {
    enumerable: true,
    value: 32766
});
 
Object.defineProperty(Test, 'IntConst2', {
    enumerable: true,
    value: 2147483647
});
 
Object.defineProperty(Test, 'LongConst2', {
    enumerable: true,
    value: 2147483646n
});
 
Test.ByteEnum = Ice.defineEnum([
    ['benum1', 0], ['benum2', 1], ['benum3', 10], ['benum4', 11], ['benum5', 20],
    ['benum6', 21], ['benum7', 30], ['benum8', 31], ['benum9', 40], ['benum10', 41],
    ['benum11', 126]]);
 
Test.ShortEnum = Ice.defineEnum([
    ['senum1', 3], ['senum2', 4], ['senum3', 10], ['senum4', 11], ['senum5', 20],
    ['senum6', 21], ['senum7', 30], ['senum8', 31], ['senum9', 40], ['senum10', 41],
    ['senum11', 32766]]);
 
Test.IntEnum = Ice.defineEnum([
    ['ienum1', 0], ['ienum2', 1], ['ienum3', 10], ['ienum4', 11], ['ienum5', 20],
    ['ienum6', 21], ['ienum7', 30], ['ienum8', 31], ['ienum9', 40], ['ienum10', 41],
    ['ienum11', 2147483647], ['ienum12', 2147483646]]);
 
Test.SimpleEnum = Ice.defineEnum([
    ['red', 0], ['green', 1], ['blue', 2]]);
 
const iceC_Test_TestIntf_ids = [
    "::Ice::Object",
    "::Test::TestIntf"
];
 
Test.TestIntf = class extends Ice.Object {};
 
Test.TestIntfPrx = class extends Ice.ObjectPrx {};
 
Ice.TypeRegistry.declareProxyType("Test.TestIntfPrx", Test.TestIntfPrx);
 
Ice.defineOperations(
    Test.TestIntf,
    Test.TestIntfPrx,
    iceC_Test_TestIntf_ids,
    "::Test::TestIntf", {
        "opByte": [, 0, , [Test.ByteEnum._helper], [[Test.ByteEnum._helper]], [[Test.ByteEnum._helper]], , , ],
        "opShort": [, 0, , [Test.ShortEnum._helper], [[Test.ShortEnum._helper]], [[Test.ShortEnum._helper]], , , ],
        "opInt": [, 0, , [Test.IntEnum._helper], [[Test.IntEnum._helper]], [[Test.IntEnum._helper]], , , ],
        "opSimple": [, 0, , [Test.SimpleEnum._helper], [[Test.SimpleEnum._helper]], [[Test.SimpleEnum._helper]], , , ],
        "shutdown": [, 0, , , , , , , ]
    });