(t *testing.T)
| 160 | } |
| 161 | |
| 162 | func TestUpdateEnvironmentWithDuplicateKeys(t *testing.T) { |
| 163 | // Test case for #25404 |
| 164 | flags := newUpdateCommand(nil).Flags() |
| 165 | flags.Set("env-add", "A=b") |
| 166 | |
| 167 | envs := []string{"A=c"} |
| 168 | |
| 169 | updateEnvironment(flags, &envs) |
| 170 | assert.Assert(t, is.Len(envs, 1)) |
| 171 | assert.Check(t, is.Equal("A=b", envs[0])) |
| 172 | } |
| 173 | |
| 174 | func TestUpdateGroups(t *testing.T) { |
| 175 | flags := newUpdateCommand(nil).Flags() |
nothing calls this directly
no test coverage detected
searching dependent graphs…