All files / test/Ice/proxy Test.js

93.03% Statements 147/158
100% Branches 6/6
62.5% Functions 5/8
93.03% Lines 147/158

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 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 1591x 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 3x 3x 3x 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 2x 2x 2x 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 4x 4x 4x 4x 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 = {};
 
const iceC_Test_MyClass_ids = [
    "::Ice::Object",
    "::Test::MyClass"
];
 
Test.MyClass = class extends Ice.Object {};
 
Test.MyClassPrx = class extends Ice.ObjectPrx {};
 
Ice.TypeRegistry.declareProxyType("Test.MyClassPrx", Test.MyClassPrx);
 
Ice.defineOperations(
    Test.MyClass,
    Test.MyClassPrx,
    iceC_Test_MyClass_ids,
    "::Test::MyClass", {
        "shutdown": [, 0, , , , , , , ],
        "getContext": [, 0, , [Ice.ContextHelper], , , , , ]
    });
 
const iceC_Test_MyDerivedClass_ids = [
    "::Ice::Object",
    "::Test::MyClass",
    "::Test::MyDerivedClass"
];
 
Test.MyDerivedClass = class extends Ice.Object {
    static get _iceImplements() {
        return [
            Test.MyClass
        ];
    }
};
 
Test.MyDerivedClassPrx = class extends Ice.ObjectPrx {
    static get _implements() {
        return [
            Test.MyClassPrx];
    }
};
 
Ice.TypeRegistry.declareProxyType("Test.MyDerivedClassPrx", Test.MyDerivedClassPrx);
 
Ice.defineOperations(
    Test.MyDerivedClass,
    Test.MyDerivedClassPrx,
    iceC_Test_MyDerivedClass_ids,
    "::Test::MyDerivedClass", {
        "echo": [, 0, , [8], [[8]], , , , ]
    });
 
const iceC_Test_A_ids = [
    "::Ice::Object",
    "::Test::A"
];
 
Test.A = class extends Ice.Object {};
 
Test.APrx = class extends Ice.ObjectPrx {};
 
Ice.TypeRegistry.declareProxyType("Test.APrx", Test.APrx);
 
Ice.defineOperations(
    Test.A,
    Test.APrx,
    iceC_Test_A_ids,
    "::Test::A", {
        "opA": [, 0, , ["Test.APrx"], [["Test.APrx"]], , , , ]
    });
 
const iceC_Test_B_ids = [
    "::Ice::Object",
    "::Test::B"
];
 
Test.B = class extends Ice.Object {};
 
Test.BPrx = class extends Ice.ObjectPrx {};
 
Ice.TypeRegistry.declareProxyType("Test.BPrx", Test.BPrx);
 
Ice.defineOperations(
    Test.B,
    Test.BPrx,
    iceC_Test_B_ids,
    "::Test::B", {
        "opB": [, 0, , ["Test.BPrx"], [["Test.BPrx"]], , , , ]
    });
 
Test.S = class {
    constructor(a = null, b = null) {
        this.a = a;
        this.b = b;
    }
 
    _write(ostr) {
        ostr.writeProxy(this.a);
        ostr.writeProxy(this.b);
    }
 
    _read(istr) {
        this.a = istr.readProxy();
        this.b = istr.readProxy();
    }
 
    static get minWireSize() {
        return  4;
    }
};
 
Ice.defineStruct(Test.S, false, true);
 
const iceC_Test_C_ids = [
    "::Ice::Object",
    "::Test::A",
    "::Test::B",
    "::Test::C"
];
 
Test.C = class extends Ice.Object {
    static get _iceImplements() {
        return [
            Test.A,
            Test.B
        ];
    }
};
 
Test.CPrx = class extends Ice.ObjectPrx {
    static get _implements() {
        return [
            Test.APrx,
            Test.BPrx];
    }
};
 
Ice.TypeRegistry.declareProxyType("Test.CPrx", Test.CPrx);
 
Ice.defineOperations(
    Test.C,
    Test.CPrx,
    iceC_Test_C_ids,
    "::Test::C", {
        "opC": [, 0, , ["Test.CPrx"], [["Test.CPrx"]], , , , ],
        "opS": [, 0, , [Test.S], [[Test.S]], , , , ]
    });