MCPcopy Create free account
hub / github.com/convox/rack / TestProcessStringArray

Function TestProcessStringArray

pkg/manifest1/process_test.go:108–125  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

106}
107
108func TestProcessStringArray(t *testing.T) {
109 s := manifest1.Service{
110 Name: "foo",
111 Command: manifest1.Command{Array: []string{"ls", "-la"}},
112 }
113
114 m := manifest1.Manifest{
115 Services: map[string]manifest1.Service{
116 "foo": s,
117 },
118 }
119
120 p := manifest1.NewProcess("api", s, m)
121
122 if assert.NotNil(t, p) {
123 assert.Equal(t, []string{"-i", "--rm", "--name", "api-foo", "api/foo", "ls", "-la"}, p.Args)
124 }
125}

Callers

nothing calls this directly

Calls 1

NewProcessFunction · 0.92

Tested by

no test coverage detected