UNPKG

@gatling.io/core

Version:

Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).

9 lines (8 loc) 470 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.uniformRandomSwitchImpl = void 0; const wrapOn = (jvmOn, wrap) => ({ on: (executable, ...executables) => wrap(jvmOn.on(executable._underlying, ...executables.map((e) => e._underlying))) }); const uniformRandomSwitchImpl = (jvmUniformRandomSwitch, wrap) => () => wrapOn(jvmUniformRandomSwitch.uniformRandomSwitch(), wrap); exports.uniformRandomSwitchImpl = uniformRandomSwitchImpl;