github.com/shuguocloud/go-zero@v1.3.0/core/iox/pipe_test.go (about) 1 package iox 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestRedirectInOut(t *testing.T) { 10 restore, err := RedirectInOut() 11 assert.Nil(t, err) 12 defer restore() 13 }