MCPcopy Create free account
hub / github.com/activejs/activejs / randomValue

Function randomValue

packages/core/src/tests/utils.ts:250–253  ·  view source on GitHub ↗
(nestingLvl = 2)

Source from the content-addressed store, hash-verified

248}
249
250export function randomValue(nestingLvl = 2) {
251 --nestingLvl;
252 return selectRandom(RANDOM_VALUE_PRODUCERS)(nestingLvl);
253}
254
255export function randomValidValue<
256 T extends UnitBase<any> | Action<any>,

Callers 15

units.spec.tsFile · 0.90
action.spec.tsFile · 0.90
extras.spec.tsFile · 0.90
dict-unit.spec.tsFile · 0.90
cluster.spec.tsFile · 0.90
list-unit.spec.tsFile · 0.90
num-unit.spec.tsFile · 0.90
bool-unit.spec.tsFile · 0.90

Calls 1

selectRandomFunction · 0.85

Tested by

no test coverage detected