mirror of
https://github.com/ii64/gouring.git
synced 2024-11-23 23:40:29 +01:00
test: sqe and cqe size check
This commit is contained in:
parent
3409c752f2
commit
b60c5ed2ba
1 changed files with 13 additions and 0 deletions
13
hdr_test.go
Normal file
13
hdr_test.go
Normal 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")
|
||||||
|
}
|
Loading…
Reference in a new issue