The idea here is to enable testing as much of the functionality in the package as possible, without having to actually do the real ioctl calls. These hooks can emulate what the kernel implementation is doing, although manipulating cbuf unsafe.Pointer to populate it in the tests feels a little iffy. Feedback is welcome.
The idea here is to enable testing as much of the functionality in the package as possible, without having to actually do the real ioctl calls. These hooks can emulate what the kernel implementation is doing, although manipulating
cbuf unsafe.Pointer
to populate it in the tests feels a little iffy. Feedback is welcome.