All files / test/Glacier2/router Callback.js

100% Statements 90/90
100% Branches 7/7
100% Functions 6/6
100% Lines 90/90

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 911x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 1x 1x 3x 3x 1x 1x 3x 3x 1x 1x 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 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 'Callback.ice'.</auto-generated>
 
/* eslint-disable */
/* jshint ignore: start */
 
import { Ice } from "@zeroc/ice";
 
export const Test = {};
 
Test.CallbackException = class extends Ice.UserException {
    constructor(someValue = 0.0, someString = "") {
        super();
        this.someValue = someValue;
        this.someString = someString;
    }
 
    static get _parent() {
        return Ice.UserException;
    }
 
    static get _ice_id() {
        return "::Test::CallbackException";
    }
 
    _mostDerivedType() {
        return Test.CallbackException;
    }
 
    _writeMemberImpl(ostr) {
        ostr.writeDouble(this.someValue);
        ostr.writeString(this.someString);
    }
 
    _readMemberImpl(istr) {
        this.someValue = istr.readDouble();
        this.someString = istr.readString();
    }
};
 
Ice.defineClass(Test.CallbackException, "::Test::CallbackException");
 
const iceC_Test_CallbackReceiver_ids = [
    "::Ice::Object",
    "::Test::CallbackReceiver"
];
 
Test.CallbackReceiver = class extends Ice.Object {};
 
Test.CallbackReceiverPrx = class extends Ice.ObjectPrx {};
 
Ice.TypeRegistry.declareProxyType("Test.CallbackReceiverPrx", Test.CallbackReceiverPrx);
 
Ice.defineOperations(
    Test.CallbackReceiver,
    Test.CallbackReceiverPrx,
    iceC_Test_CallbackReceiver_ids,
    "::Test::CallbackReceiver", {
        "callback": [, 0, , , , , , , ],
        "callbackEx": [, 0, , , , ,
        [
            Test.CallbackException
        ], , ]
    });
 
const iceC_Test_Callback_ids = [
    "::Ice::Object",
    "::Test::Callback"
];
 
Test.Callback = class extends Ice.Object {};
 
Test.CallbackPrx = class extends Ice.ObjectPrx {};
 
Ice.TypeRegistry.declareProxyType("Test.CallbackPrx", Test.CallbackPrx);
 
Ice.defineOperations(
    Test.Callback,
    Test.CallbackPrx,
    iceC_Test_Callback_ids,
    "::Test::Callback", {
        "initiateCallback": [, 0, , , [["Test.CallbackReceiverPrx"]], , , , ],
        "initiateCallbackEx": [, 0, , , [["Test.CallbackReceiverPrx"]], ,
        [
            Test.CallbackException
        ], , ],
        "shutdown": [, 0, , , , , , , ]
    });