All files / test/Ice/moduleAggregation/module Test.js

74.14% Statements 109/147
66.66% Branches 4/6
15% Functions 3/20
74.14% Lines 109/147

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 1481x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 1x     1x 1x     1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x       1x 1x       1x 1x     1x 1x 1x 1x 1x 1x     1x 1x     1x 1x     1x 1x     1x 1x 1x 1x 1x 1x 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";
 
import { 
    Outer as __First_Outer, } from "./First.js"
import { 
    Outer as __Forward_Outer, } from "./Forward.js"
import { 
    Outer as __Second_Outer, } from "./Second.js"
import { 
    Outer as __Third_Outer, } from "./Third.js"
 
const Outer = {
    ...__First_Outer,
    ...__Forward_Outer,
    ...__Second_Outer,
    ...__Third_Outer,
};
 
Outer.Inner = {
    ...__First_Outer.Inner,
    ...__Forward_Outer.Inner,
    ...__Second_Outer.Inner,
    ...__Third_Outer.Inner,
};
 
Outer.Inner.Deep = {
    ...__First_Outer.Inner.Deep,
    ...__Second_Outer.Inner.Deep,
    ...__Third_Outer.Inner.Deep,
};
export { Outer };
Outer.Inner = Outer.Inner || {};
Outer.Inner.Deep = Outer.Inner.Deep || {};
 
Outer.Inner.UsesForward = class {
    constructor(forward = null) {
        this.forward = forward;
    }
 
    _write(ostr) {
        ostr.writeValue(this.forward);
    }
 
    _read(istr) {
        istr.readValue(obj => this.forward = obj, Ice.TypeRegistry.getValueType("Outer.Inner.ForwardDeclared"));
    }
 
    static get minWireSize() {
        return  1;
    }
};
 
Ice.defineStruct(Outer.Inner.UsesForward, false, true);
 
Outer.Inner.Combined = class {
    constructor(first = new Outer.Inner.First(), second = new Outer.Inner.Second()) {
        this.first = first;
        this.second = second;
    }
 
    _write(ostr) {
        Outer.Inner.First.write(ostr, this.first);
        Outer.Inner.Second.write(ostr, this.second);
    }
 
    _read(istr) {
        this.first = Outer.Inner.First.read(istr, this.first);
        this.second = Outer.Inner.Second.read(istr, this.second);
    }
 
    static get minWireSize() {
        return  5;
    }
};
 
Ice.defineStruct(Outer.Inner.Combined, true, true);
 
Outer.Inner.UsesThird = class {
    constructor(third = new Outer.Inner.Third()) {
        this.third = third;
    }
 
    _write(ostr) {
        Outer.Inner.Third.write(ostr, this.third);
    }
 
    _read(istr) {
        this.third = Outer.Inner.Third.read(istr, this.third);
    }
 
    static get minWireSize() {
        return  4;
    }
};
 
Ice.defineStruct(Outer.Inner.UsesThird, true, false);
 
Outer.Inner.Deep.DeepCombined = class {
    constructor(deepFirst = new Outer.Inner.Deep.DeepFirst(), deepSecond = new Outer.Inner.Deep.DeepSecond()) {
        this.deepFirst = deepFirst;
        this.deepSecond = deepSecond;
    }
 
    _write(ostr) {
        Outer.Inner.Deep.DeepFirst.write(ostr, this.deepFirst);
        Outer.Inner.Deep.DeepSecond.write(ostr, this.deepSecond);
    }
 
    _read(istr) {
        this.deepFirst = Outer.Inner.Deep.DeepFirst.read(istr, this.deepFirst);
        this.deepSecond = Outer.Inner.Deep.DeepSecond.read(istr, this.deepSecond);
    }
 
    static get minWireSize() {
        return  5;
    }
};
 
Ice.defineStruct(Outer.Inner.Deep.DeepCombined, true, true);
 
Outer.Inner.Deep.UsesDeepThird = class {
    constructor(deepThird = new Outer.Inner.Deep.DeepThird()) {
        this.deepThird = deepThird;
    }
 
    _write(ostr) {
        Outer.Inner.Deep.DeepThird.write(ostr, this.deepThird);
    }
 
    _read(istr) {
        this.deepThird = Outer.Inner.Deep.DeepThird.read(istr, this.deepThird);
    }
 
    static get minWireSize() {
        return  4;
    }
};
 
Ice.defineStruct(Outer.Inner.Deep.UsesDeepThird, true, false);