Added ExampleExecAndStream test

pull/13/head
Paulo Truta 2021-06-12 14:13:46 +00:00
parent e19a830e29
commit ac8b70976b
1 changed files with 11 additions and 0 deletions

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) { func TestExecAndGetLines(t *testing.T) {
testCommand := "echo" testCommand := "echo"
testArguments := []string{"$'Line1\nLine2\nLine3'"} testArguments := []string{"$'Line1\nLine2\nLine3'"}