mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
13 lines
173 B
Go
13 lines
173 B
Go
package iox
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNopCloser(t *testing.T) {
|
|
closer := NopCloser(nil)
|
|
assert.NoError(t, closer.Close())
|
|
}
|