blob: b26a48e6cf370f198a4205208df3c13412f83b69 [file] [log] [blame] [edit]
package nvme
import (
"encoding/binary"
"testing"
)
// TestStruct tests if the struct passed to Linux's ioctl has the ABI-specified
// size.
func TestStruct(t *testing.T) {
passthruCmdSize := binary.Size(passthruCmd{})
if passthruCmdSize != 72 {
t.Errorf("passthroughCmd is %d bytes, expected 72", passthruCmdSize)
}
}