Add utils package import and dump output in process_test.go

This commit is contained in:
Max 2024-02-15 14:27:33 +08:00
parent 67090b0e31
commit 063568828b

View file

@ -6,6 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/yaoapp/gou/process"
"github.com/yaoapp/kun/any"
"github.com/yaoapp/kun/utils"
"github.com/yaoapp/yao/test"
)
@ -19,6 +20,8 @@ func TestProcessPipes(t *testing.T) {
}
output, err := p.Exec()
utils.Dump(output)
res := any.Of(output).Map().MapStrAny.Dot()
assert.True(t, res.Has("global"))
assert.True(t, res.Has("input"))