(fc: typeof FastCheck, ctx: Context, item: FastCheck.Arbitrary<any>, terminal = false)
| 79 | } |
| 80 | |
| 81 | function array(fc: typeof FastCheck, ctx: Context, item: FastCheck.Arbitrary<any>, terminal = false) { |
| 82 | const constraint = ctx.constraint |
| 83 | const arrayConstraints = lengthToFastCheckConstraints(constraint) |
| 84 | validateArrayConstraints(arrayConstraints, "array") |
| 85 | return arrayWithConstraints( |
| 86 | fc, |
| 87 | item, |
| 88 | terminal ? { ...arrayConstraints, maxLength: arrayConstraints?.minLength ?? 0 } : arrayConstraints, |
| 89 | constraint?.unique ? Equal.equals : undefined |
| 90 | ) |
| 91 | } |
| 92 | |
| 93 | function appendArray( |
| 94 | fc: typeof FastCheck, |
no test coverage detected