(t *testing.T)
| 87 | } |
| 88 | |
| 89 | func 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 | |
| 108 | func TestProcessStringArray(t *testing.T) { |
| 109 | s := manifest1.Service{ |
nothing calls this directly
no test coverage detected