(overrideConfig?: UnitConfig<any>)
| 52 | let valueAtPath: any; |
| 53 | |
| 54 | const makeUnit = (overrideConfig?: UnitConfig<any>) => { |
| 55 | const unitCtor = selectRandom([DictUnit, ListUnit, GenericUnit]); |
| 56 | unitConfig = { |
| 57 | ...somewhatValidConfig(configOptions, unitCtor), |
| 58 | ...overrideConfig, |
| 59 | }; |
| 60 | unit = new unitCtor(unitConfig); |
| 61 | randPath = findRandomPath(unit.value()); |
| 62 | if (!randPath.length) { |
| 63 | randPath = [randomNumOrStr()]; |
| 64 | } |
| 65 | }; |
| 66 | |
| 67 | const makeCase = () => { |
| 68 | randVal = randomValidValue(unit, 4); |
no test coverage detected