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

Function randomUnitCtor

packages/core/src/tests/utils.ts:428–431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

426}
427
428export function randomUnitCtor(): new (config?: UnitConfig<any>) => UnitBase<any> &
429 NonPrimitiveUnitBase<any> {
430 return selectRandom(UNITS_CTORS);
431}
432
433export function randomUnit(config?: UnitConfig<any>) {
434 const unitCtor = randomUnitCtor();

Callers 4

units.spec.tsFile · 0.90
randomUnitFunction · 0.85

Calls 1

selectRandomFunction · 0.85

Tested by

no test coverage detected