test: sqe and cqe size check

This commit is contained in:
Xeffy Chen 2022-10-12 23:17:41 +07:00
parent 3409c752f2
commit b60c5ed2ba
Signed by: Xeffy
GPG key ID: E41C08AD390E7C49

13
hdr_test.go Normal file
View file

@ -0,0 +1,13 @@
package gouring
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestDataSize(t *testing.T) {
assert.Equal(t, 64, int(SizeofIoUringSqe), "sqe data size mismatch")
assert.Equal(t, 16, int(SizeofIoUringCqe), "cqe data size mismatch")
}