Function
appendArray
(
fc: typeof FastCheck,
out: FastCheck.Arbitrary<Array<any>>,
len: number,
rest: FastCheck.Arbitrary<ReadonlyArray<any>>
)
Source from the content-addressed store, hash-verified
| 91 | } |
| 92 | |
| 93 | function appendArray( |
| 94 | fc: typeof FastCheck, |
| 95 | out: FastCheck.Arbitrary<Array<any>>, |
| 96 | len: number, |
| 97 | rest: FastCheck.Arbitrary<ReadonlyArray<any>> |
| 98 | ) { |
| 99 | return out.chain((as) => as.length < len ? fc.constant(as) : rest.map((rest) => [...as, ...rest])) |
| 100 | } |
| 101 | |
| 102 | function appendObjectEntries( |
| 103 | out: FastCheck.Arbitrary<any>, |
Tested by
no test coverage detected