(t *testing.T)
| 106 | } |
| 107 | |
| 108 | func 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 | } |
nothing calls this directly
no test coverage detected