All files / construct/domain_layer/domain/scene/scene_graph/service BufferComponentDoService.bs.js

100% Statements 9/9
100% Branches 0/0
100% Functions 3/3
100% Lines 9/9

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    31x 31x 31x 31x     366x 366x 366x 366x         31x    
'use strict';
 
var Curry = require("bs-platform/lib/js/curry.js");
var Log$Wonderjs = require("../../../../library/log/Log.bs.js");
var Contract$Wonderjs = require("../../../../library/contract/Contract.bs.js");
var DpContainer$Wonderjs = require("../../../../dependency/container/DpContainer.bs.js");
 
function checkNotExceedMaxCountByIndex(index, maxCount) {
  return Contract$Wonderjs.ensureCheck(index, (function (index) {
                var maxIndex = maxCount - 1 | 0;
                return Contract$Wonderjs.test(Log$Wonderjs.buildAssertMessage("index: " + index + " <= maxIndex: " + maxIndex, "not"), (function (param) {
                              return Contract$Wonderjs.Operators.$less$eq(index, maxIndex);
                            }));
              }), Curry._1(DpContainer$Wonderjs.unsafeGetOtherConfigDp(undefined).getIsDebug, undefined));
}
 
exports.checkNotExceedMaxCountByIndex = checkNotExceedMaxCountByIndex;
/* No side effect */