All files / src/Ice TraceLevels.js

96.66% Statements 58/60
100% Branches 13/13
92.3% Functions 12/13
96.66% Lines 58/60

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 6141x 41x 41x 67x 67x 67x 67x 67x 67x 67x 67x 67x 42x 42x 67x 67x 12x 12x 67x 67x 12145x 12145x 67x 67x 3116x 3116x 67x 67x 7242x 7242x 67x 67x 5298x 5298x 67x 67x 2085x 2085x 67x 67x 29x 29x 67x 67x 6264x 6264x 67x 67x 6264x 6264x 67x 67x 27x 27x 67x 67x     67x 67x  
// Copyright (c) ZeroC, Inc.
 
export function TraceLevels(properties) {
    const dispatch = properties.getIcePropertyAsInt("Ice.Trace.Dispatch");
    const network = properties.getIcePropertyAsInt("Ice.Trace.Network");
    const protocol = properties.getIcePropertyAsInt("Ice.Trace.Protocol");
    const retry = properties.getIcePropertyAsInt("Ice.Trace.Retry");
    const location = properties.getIcePropertyAsInt("Ice.Trace.Locator");
    const slicing = properties.getIcePropertyAsInt("Ice.Trace.Slicing");
 
    return class {
        static get dispatch() {
            return dispatch;
        }
 
        static get dispatchCat() {
            return "Dispatch";
        }
 
        static get network() {
            return network;
        }
 
        static get networkCat() {
            return "Network";
        }
 
        static get protocol() {
            return protocol;
        }
 
        static get protocolCat() {
            return "Protocol";
        }
 
        static get retry() {
            return retry;
        }
 
        static get retryCat() {
            return "Retry";
        }
 
        static get location() {
            return location;
        }
 
        static get locationCat() {
            return "Locator";
        }
 
        static get slicing() {
            return slicing;
        }
 
        static get slicingCat() {
            return "Slicing";
        }
    };
}