All files / test/Slice/macros Test.js

76.62% Statements 59/77
100% Branches 4/4
33.33% Functions 3/9
76.62% Lines 59/77

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 781x 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.Default = class extends Ice.Value {
    constructor(x = 10, y = 10) {
        super();
        this.x = x;
        this.y = y;
    }
 
    _iceWriteMemberImpl(ostr) {
        ostr.writeInt(this.x);
        ostr.writeInt(this.y);
    }
 
    _iceReadMemberImpl(istr) {
        this.x = istr.readInt();
        this.y = istr.readInt();
    }
};
 
Ice.defineClass(Test.Default, "::Test::Default");
 
Ice.TypeRegistry.declareValueType("Test.Default", Test.Default);
 
Test.NoDefault = class extends Ice.Value {
    constructor(x = 0, y = 0) {
        super();
        this.x = x;
        this.y = y;
    }
 
    _iceWriteMemberImpl(ostr) {
        ostr.writeInt(this.x);
        ostr.writeInt(this.y);
    }
 
    _iceReadMemberImpl(istr) {
        this.x = istr.readInt();
        this.y = istr.readInt();
    }
};
 
Ice.defineClass(Test.NoDefault, "::Test::NoDefault");
 
Ice.TypeRegistry.declareValueType("Test.NoDefault", Test.NoDefault);
 
Test.JsOnly = class extends Ice.Value {
    constructor(lang = "js", version = 30950) {
        super();
        this.lang = lang;
        this.version = version;
    }
 
    _iceWriteMemberImpl(ostr) {
        ostr.writeString(this.lang);
        ostr.writeInt(this.version);
    }
 
    _iceReadMemberImpl(istr) {
        this.lang = istr.readString();
        this.version = istr.readInt();
    }
};
 
Ice.defineClass(Test.JsOnly, "::Test::JsOnly");
 
Ice.TypeRegistry.declareValueType("Test.JsOnly", Test.JsOnly);