(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestSetStringFlag(t *testing.T) { |
| 13 | rawConfig := getActualRawConfig() |
| 14 | s := "deployments.dev.helm.values.containers[0]=" |
| 15 | err := ParseIntoString(s, rawConfig) |
| 16 | if err != nil { |
| 17 | fmt.Println(errors.Wrap(err, "parsing --set-string flag")) |
| 18 | log.Fatal(err) |
| 19 | } |
| 20 | b, err := json.Marshal(rawConfig) |
| 21 | if err != nil { |
| 22 | fmt.Println(err) |
| 23 | } |
| 24 | fmt.Println("output : " + string(b)) |
| 25 | assert.DeepEqual(t, rawConfig, getExpectedRawConfigForSetString()) |
| 26 | } |
| 27 | |
| 28 | func TestSetFlag(t *testing.T) { |
| 29 | s := "deployments.dev.helm.values.containers[1].image=" |
nothing calls this directly
no test coverage detected