blob: b26a48e6cf370f198a4205208df3c13412f83b69 [file] [log] [blame]
Lorenz Brunfba5da02022-12-15 11:20:47 +00001package nvme
2
3import (
4 "encoding/binary"
5 "testing"
6)
7
8// TestStruct tests if the struct passed to Linux's ioctl has the ABI-specified
9// size.
10func TestStruct(t *testing.T) {
11 passthruCmdSize := binary.Size(passthruCmd{})
12 if passthruCmdSize != 72 {
13 t.Errorf("passthroughCmd is %d bytes, expected 72", passthruCmdSize)
14 }
15}