MCPcopy Create free account
hub / github.com/chrislusf/gleam / TestCallingShellScripts

Function TestCallingShellScripts

examples/tests/shell_script_test.go:10–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestCallingShellScripts(t *testing.T) {
11
12 data := []string{
13 "asdf",
14 "hlkgjh",
15 "truytyu",
16 "34weqrqw",
17 "asdfadfasaf",
18 }
19
20 flow.New("callShell").Strings(data).
21 Pipe("filter", "grep -v asdf").
22 Pipe("print", "awk {print}").
23 Fprintf(os.Stdout, "calling shell> %s\n")
24
25}
26
27func TestOutputObjects(t *testing.T) {
28

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
FprintfMethod · 0.80
StringsMethod · 0.80
PipeMethod · 0.45

Tested by

no test coverage detected