Re: [Libguestfs] [PATCH libnbd 1/9] golang: tests: Add test for AioBuffer

2022-02-10 Thread Nir Soffer
On Tue, Feb 8, 2022 at 9:33 PM Eric Blake wrote: > > On Sun, Jan 30, 2022 at 01:33:29AM +0200, Nir Soffer wrote: > > Add unit tests and benchmarks for AioBuffer. The tests are trivial but > > they server as running documentation, and they point out important > > details about the type. > > > >

Re: [Libguestfs] [PATCH libnbd 1/9] golang: tests: Add test for AioBuffer

2022-02-08 Thread Eric Blake
On Sun, Jan 30, 2022 at 01:33:29AM +0200, Nir Soffer wrote: > Add unit tests and benchmarks for AioBuffer. The tests are trivial but > they server as running documentation, and they point out important > details about the type. > > The benchmarks how efficient is allocation a new buffer, zeroing

[Libguestfs] [PATCH libnbd 1/9] golang: tests: Add test for AioBuffer

2022-01-29 Thread Nir Soffer
Add unit tests and benchmarks for AioBuffer. The tests are trivial but they server as running documentation, and they point out important details about the type. The benchmarks how efficient is allocation a new buffer, zeroing it, and interfacing with Go code. This tests will also ensure that we