UNPKG

@gatling.io/core

Version:

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

21 lines (20 loc) 978 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.percent = exports.onCase = void 0; const jvm_types_1 = require("@gatling.io/jvm-types"); const wrapChoiceWithKey = (_underlying) => ({ _underlying }); const wrapChoiceWithKeyThen = (jvmChoiceWithKeyThen) => ({ then: (executable, ...executables) => wrapChoiceWithKey(jvmChoiceWithKeyThen.then(executable._underlying, ...executables.map((e) => e._underlying))) }); const onCase = (key) => wrapChoiceWithKeyThen(jvm_types_1.CoreDsl.onCase(key)); exports.onCase = onCase; const wrapChoiceWithWeight = (_underlying) => ({ _underlying }); const wrapChoiceWithWeightThen = (jvmChoiceWithWeightThen) => ({ then: (executable, ...executables) => wrapChoiceWithWeight(jvmChoiceWithWeightThen.then(executable._underlying, ...executables.map((e) => e._underlying))) }); const percent = (percent) => wrapChoiceWithWeightThen(jvm_types_1.CoreDsl.percent(percent)); exports.percent = percent;