mirror of
https://github.com/ii64/gouring.git
synced 2024-11-25 16:28:20 +01:00
15 lines
228 B
Go
15 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()
|
|
}
|