add more tests

This commit is contained in:
kevin
2020-10-07 22:54:51 +08:00
parent 6db294b5cc
commit 09b7625f06
4 changed files with 100 additions and 9 deletions

13
core/iox/pipe_test.go Normal file
View File

@@ -0,0 +1,13 @@
package iox
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestRedirectInOut(t *testing.T) {
restore, err := RedirectInOut()
assert.Nil(t, err)
defer restore()
}