blob: 974166471016177bfdef12e822b5b3cc1c99e0a3 [file] [log] [blame]
Tim Windelschmidt6d33a432025-02-04 14:34:25 +01001// Copyright The Monogon Project Authors.
2// SPDX-License-Identifier: Apache-2.0
3
Lorenz Brunfba5da02022-12-15 11:20:47 +00004package nvme
5
6import (
7 "encoding/binary"
8 "testing"
9)
10
11// TestStruct tests if the struct passed to Linux's ioctl has the ABI-specified
12// size.
13func TestStruct(t *testing.T) {
14 passthruCmdSize := binary.Size(passthruCmd{})
15 if passthruCmdSize != 72 {
16 t.Errorf("passthroughCmd is %d bytes, expected 72", passthruCmdSize)
17 }
18}