Leak detection helpers for debugging resource usage. Implements buffering utilities to capture leaked output. Utilities focus on leakbuf within the leaky package.
Go Files
leakbuf.go – Implements a buffer wrapper for detecting unexpected writes during tests.
Put add the buffer into the free buffer pool for reuse. Panic if the buffer
size is not the same with the leaky buffer's. This is intended to expose
error usage of leaky buffer.