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

Function TestProcessCommandString

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

Source from the content-addressed store, hash-verified

87}
88
89func TestProcessCommandString(t *testing.T) {
90 s := manifest1.Service{
91 Name: "foo",
92 Command: manifest1.Command{String: "ls -la"},
93 }
94
95 m := manifest1.Manifest{
96 Services: map[string]manifest1.Service{
97 "foo": s,
98 },
99 }
100
101 p := manifest1.NewProcess("api", s, m)
102
103 if assert.NotNil(t, p) {
104 assert.Equal(t, []string{"-i", "--rm", "--name", "api-foo", "api/foo", "sh", "-c", "ls -la"}, p.Args)
105 }
106}
107
108func TestProcessStringArray(t *testing.T) {
109 s := manifest1.Service{

Callers

nothing calls this directly

Calls 1

NewProcessFunction · 0.92

Tested by

no test coverage detected