0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/testing.zig
Ben Burkert 9b08aca878 Assert testing.{Reader,Writer}Indirect initialized with non-zero buffer
Both std.testing.ReaderIndirect & std.testing.WriterIndirect require a
non-zero length buffer because their purpose is to exercise internal
buffering, not to be a pass-through Reader/Writer. Asserting a non-zero
buffer length prevents unintended behavior like infinite loops on
certain operations.
2026-09-27 02:23:48 +02:00

1436 lines
53 KiB