`BatchProcessor` must return `InvalidInput` if the entire input is invalid.
Invalid later item
- Input
- `[(4, 2), (1001, 1)]`
- Expected
- `InvalidInput`, zero `apply` calls
Excess length
- Input
- 101 copies of `(1, 1)`
- Expected
- `InvalidInput`, zero `apply` calls
Wrong field type
- Input
- `[{numerator: true, denominator: 1}]`
- Expected
- `InvalidInput`, zero `apply` calls
Wrong shape
- Input
- Missing input, a scalar, a missing field, or an extra field
- Expected
- `InvalidInput`, zero `apply` calls for each case
`BatchProcessor` must not call `apply` when the entire input is invalid.
Invalid later item
- Input
- `[(4, 2), (1001, 1)]`
- Expected
- `InvalidInput`, zero `apply` calls
Excess length
- Input
- 101 copies of `(1, 1)`
- Expected
- `InvalidInput`, zero `apply` calls
Wrong field type
- Input
- `[{numerator: true, denominator: 1}]`
- Expected
- `InvalidInput`, zero `apply` calls
Wrong shape
- Input
- Missing input, a scalar, a missing field, or an extra field
- Expected
- `InvalidInput`, zero `apply` calls for each case
For valid input, `BatchProcessor` must call `apply` exactly once per item, in ascending list-index order.
Positive fraction
- Input
- `[(7, 2)]`
- Expected
- `Completed([Ok(3)])`
Duplicate pairs
- Input
- `[(4, 2), (4, 2)]`
- Expected
- `Completed([Ok(2), Ok(2)])`, two `apply` calls
Maximum length
- Input
- 100 copies of `(1, 1)`
- Expected
- `Completed` with 100 `Ok(1)` results
`BatchProcessor` must complete each `apply` call before starting the next call.
Continue after error
- Input
- `[(1, 0), (9, 2)]`
- Expected
- `Completed([Error(ZeroDivisor), Ok(4)])`
`BatchProcessor` must append each `apply` result to `results` in the same order as the input items.
Positive fraction
- Input
- `[(7, 2)]`
- Expected
- `Completed([Ok(3)])`
Continue after error
- Input
- `[(1, 0), (9, 2)]`
- Expected
- `Completed([Error(ZeroDivisor), Ok(4)])`
Duplicate pairs
- Input
- `[(4, 2), (4, 2)]`
- Expected
- `Completed([Ok(2), Ok(2)])`, two `apply` calls
Maximum length
- Input
- 100 copies of `(1, 1)`
- Expected
- `Completed` with 100 `Ok(1)` results
`BatchProcessor` must continue with the next item after an `Error` result.
Continue after error
- Input
- `[(1, 0), (9, 2)]`
- Expected
- `Completed([Error(ZeroDivisor), Ok(4)])`
Evidence · Continue after error · Current Pass
File batch-binding.json
Run run
Receipt SHA-256
1cee544103b8fd5f0a450918a3309e84335910a39dca71659f171d4a28d9bafe
Gate · Continue after error · Current Pass
File acceptance.json
Run run
Manifest SHA-256
1b15fdedf904cd71ace9acaebc5f76cceebfd7baa25e9c80ae25f6530b2a1a9f
Receipt SHA-256
1cee544103b8fd5f0a450918a3309e84335910a39dca71659f171d4a28d9bafe
After processing every item, `BatchProcessor` must return `Completed(results)`.
Positive fraction
- Input
- `[(7, 2)]`
- Expected
- `Completed([Ok(3)])`
Negative numerator
- Input
- `[(-7, 2)]`
- Expected
- `Completed([Ok(-3)])`
Negative denominator
- Input
- `[(7, -2)]`
- Expected
- `Completed([Ok(-3)])`
Both negative
- Input
- `[(-7, -2)]`
- Expected
- `Completed([Ok(3)])`
Zero numerator
- Input
- `[(0, -2)]`
- Expected
- `Completed([Ok(0)])`
Continue after error
- Input
- `[(1, 0), (9, 2)]`
- Expected
- `Completed([Error(ZeroDivisor), Ok(4)])`
Duplicate pairs
- Input
- `[(4, 2), (4, 2)]`
- Expected
- `Completed([Ok(2), Ok(2)])`, two `apply` calls
Lower bound
- Input
- `[(-1000, 1)]`
- Expected
- `Completed([Ok(-1000)])`
Upper bound
- Input
- `[(1000, 1)]`
- Expected
- `Completed([Ok(1000)])`
Maximum length
- Input
- 100 copies of `(1, 1)`
- Expected
- `Completed` with 100 `Ok(1)` results
For empty input, `BatchProcessor` must return `Completed([])` without calling `apply`.
Empty
- Input
- `[]`
- Expected
- `Completed([])`, zero `apply` calls
`BatchProcessor` must not change the input or produce external effects.
For valid input, `BatchProcessor` must initialize `results` to `[]` before processing any item.
Positive fraction
- Input
- `[(7, 2)]`
- Expected
- `Completed([Ok(3)])`
Duplicate pairs
- Input
- `[(4, 2), (4, 2)]`
- Expected
- `Completed([Ok(2), Ok(2)])`, two `apply` calls
Maximum length
- Input
- 100 copies of `(1, 1)`
- Expected
- `Completed` with 100 `Ok(1)` results
`BatchProcessor` must terminate each `apply` call for every valid pair.
`BatchProcessor` must return exactly one declared result from each `apply` call.
The extension author must replace behavior only within `apply`.
The extension author must define `apply` for every valid pair.