go-zero/core/iox/nopcloser_test.go

13 lines
173 B
Go
Raw Normal View History

package iox
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNopCloser(t *testing.T) {
closer := NopCloser(nil)
assert.NoError(t, closer.Close())
}