Added ExampleExecAndStream test

This commit is contained in:
Paulo Truta
2021-06-12 14:13:46 +00:00
parent e19a830e29
commit ac8b70976b
+11
View File
@@ -19,6 +19,17 @@ func TestExec(t *testing.T) {
}
}
func ExampleExecAndStream() {
ExecAndStream("/", "echo", []string{"Hello"})
// Output:
// Hello
//
// out:
// Hello
//
// err:
}
func TestExecAndGetLines(t *testing.T) {
testCommand := "echo"
testArguments := []string{"$'Line1\nLine2\nLine3'"}