campus-errand/miniapp/node_modules/fast-check/lib/cjs/arbitrary/webPath.js
2026-03-01 05:01:47 +08:00

11 lines
550 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.webPath = webPath;
const MaxLengthFromMinLength_js_1 = require("./_internals/helpers/MaxLengthFromMinLength.js");
const UriPathArbitraryBuilder_js_1 = require("./_internals/builders/UriPathArbitraryBuilder.js");
/**@__NO_SIDE_EFFECTS__*/function webPath(constraints) {
const c = constraints || {};
const resolvedSize = (0, MaxLengthFromMinLength_js_1.resolveSize)(c.size);
return (0, UriPathArbitraryBuilder_js_1.buildUriPathArbitrary)(resolvedSize);
}