All files / test/Ice/slicing/exceptions Test.js

86.71% Statements 222/256
100% Branches 21/21
55.55% Functions 20/36
86.71% Lines 222/256

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 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 2571x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 10x 10x 10x 1x 1x 10x 10x 1x 1x 3x 3x 1x 1x 3x 3x 1x 1x     1x 1x 10x 10x 1x 1x 1x 1x 1x 1x 2x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x     1x 1x 2x 2x 1x 1x 1x 1x 1x 1x 5x 5x 5x 1x 1x 5x 5x 1x 1x 2x 2x 1x 1x 2x 2x 1x 1x     1x 1x 5x 5x 1x 1x 1x 1x 1x 1x 3x 3x 3x 1x 1x 3x 3x 1x 1x 3x 3x 1x 1x 3x 3x 1x 1x     1x 1x 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 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 = {};
 
Test.Base = class extends Ice.UserException {
    constructor(b = "") {
        super();
        this.b = b;
    }
 
    static get _parent() {
        return Ice.UserException;
    }
 
    static get _ice_id() {
        return "::Test::Base";
    }
 
    _mostDerivedType() {
        return Test.Base;
    }
 
    _writeMemberImpl(ostr) {
        ostr.writeString(this.b);
    }
 
    _readMemberImpl(istr) {
        this.b = istr.readString();
    }
};
 
Ice.defineClass(Test.Base, "::Test::Base");
 
Test.KnownDerived = class extends Test.Base {
    constructor(b, kd = "") {
        super(b);
        this.kd = kd;
    }
 
    static get _parent() {
        return Test.Base;
    }
 
    static get _ice_id() {
        return "::Test::KnownDerived";
    }
 
    _mostDerivedType() {
        return Test.KnownDerived;
    }
 
    _writeMemberImpl(ostr) {
        ostr.writeString(this.kd);
    }
 
    _readMemberImpl(istr) {
        this.kd = istr.readString();
    }
};
 
Ice.defineClass(Test.KnownDerived, "::Test::KnownDerived");
 
Test.KnownIntermediate = class extends Test.Base {
    constructor(b, ki = "") {
        super(b);
        this.ki = ki;
    }
 
    static get _parent() {
        return Test.Base;
    }
 
    static get _ice_id() {
        return "::Test::KnownIntermediate";
    }
 
    _mostDerivedType() {
        return Test.KnownIntermediate;
    }
 
    _writeMemberImpl(ostr) {
        ostr.writeString(this.ki);
    }
 
    _readMemberImpl(istr) {
        this.ki = istr.readString();
    }
};
 
Ice.defineClass(Test.KnownIntermediate, "::Test::KnownIntermediate");
 
Test.KnownMostDerived = class extends Test.KnownIntermediate {
    constructor(b, ki, kmd = "") {
        super(b, ki);
        this.kmd = kmd;
    }
 
    static get _parent() {
        return Test.KnownIntermediate;
    }
 
    static get _ice_id() {
        return "::Test::KnownMostDerived";
    }
 
    _mostDerivedType() {
        return Test.KnownMostDerived;
    }
 
    _writeMemberImpl(ostr) {
        ostr.writeString(this.kmd);
    }
 
    _readMemberImpl(istr) {
        this.kmd = istr.readString();
    }
};
 
Ice.defineClass(Test.KnownMostDerived, "::Test::KnownMostDerived");
 
Test.KnownPreserved = class extends Test.Base {
    constructor(b, kp = "") {
        super(b);
        this.kp = kp;
    }
 
    static get _parent() {
        return Test.Base;
    }
 
    static get _ice_id() {
        return "::Test::KnownPreserved";
    }
 
    _mostDerivedType() {
        return Test.KnownPreserved;
    }
 
    _writeMemberImpl(ostr) {
        ostr.writeString(this.kp);
    }
 
    _readMemberImpl(istr) {
        this.kp = istr.readString();
    }
};
 
Ice.defineClass(Test.KnownPreserved, "::Test::KnownPreserved");
 
Test.KnownPreservedDerived = class extends Test.KnownPreserved {
    constructor(b, kp, kpd = "") {
        super(b, kp);
        this.kpd = kpd;
    }
 
    static get _parent() {
        return Test.KnownPreserved;
    }
 
    static get _ice_id() {
        return "::Test::KnownPreservedDerived";
    }
 
    _mostDerivedType() {
        return Test.KnownPreservedDerived;
    }
 
    _writeMemberImpl(ostr) {
        ostr.writeString(this.kpd);
    }
 
    _readMemberImpl(istr) {
        this.kpd = istr.readString();
    }
};
 
Ice.defineClass(Test.KnownPreservedDerived, "::Test::KnownPreservedDerived");
 
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", {
        "baseAsBase": [, 0, , , , ,
        [
            Test.Base
        ], , ],
        "unknownDerivedAsBase": [, 0, 0, , , ,
        [
            Test.Base
        ], , ],
        "knownDerivedAsBase": [, 0, , , , ,
        [
            Test.Base
        ], , ],
        "knownDerivedAsKnownDerived": [, 0, , , , ,
        [
            Test.KnownDerived
        ], , ],
        "unknownIntermediateAsBase": [, 0, , , , ,
        [
            Test.Base
        ], , ],
        "knownIntermediateAsBase": [, 0, , , , ,
        [
            Test.Base
        ], , ],
        "knownMostDerivedAsBase": [, 0, , , , ,
        [
            Test.Base
        ], , ],
        "knownIntermediateAsKnownIntermediate": [, 0, , , , ,
        [
            Test.KnownIntermediate
        ], , ],
        "knownMostDerivedAsKnownIntermediate": [, 0, , , , ,
        [
            Test.KnownIntermediate
        ], , ],
        "knownMostDerivedAsKnownMostDerived": [, 0, , , , ,
        [
            Test.KnownMostDerived
        ], , ],
        "unknownMostDerived1AsBase": [, 0, , , , ,
        [
            Test.Base
        ], , ],
        "unknownMostDerived1AsKnownIntermediate": [, 0, , , , ,
        [
            Test.KnownIntermediate
        ], , ],
        "unknownMostDerived2AsBase": [, 0, , , , ,
        [
            Test.Base
        ], , ],
        "shutdown": [, 0, , , , , , , ]
    });