mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 00:38:40 +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())
|
||
|
}
|