Resource Limits in an Interface Contract
A limit tells callers which inputs can be handled predictably. It needs a unit and a defined outcome at the boundary.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace payload and row limits
A file import may accept at most one hundred records and also cap decoded size. A file can satisfy one limit while exceeding the other. Bounded file inputs describe why both measures can matter.
Test at and above the limit
Verify that accepted inputs at the declared maximum work and report exactly what happens to the first excess. Inclusive and exclusive tests clarify whether equality is allowed.[1]