mirror of
https://github.com/ii64/gouring.git
synced 2024-11-26 00:36:43 +01:00
16 lines
228 B
Go
16 lines
228 B
Go
|
package gouring
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestRingSetup(t *testing.T) {
|
||
|
h, err := New(256, 0)
|
||
|
assert.NoError(t, err)
|
||
|
assert.NotNil(t, h)
|
||
|
assert.NotEqual(t, 0, h.RingFd)
|
||
|
h.Close()
|
||
|
}
|