MCPcopy Create free account
hub / github.com/devspace-sh/devspace / TestSetStringFlag

Function TestSetStringFlag

pkg/util/strvals/strvals_test.go:12–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func 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
28func TestSetFlag(t *testing.T) {
29 s := "deployments.dev.helm.values.containers[1].image="

Callers

nothing calls this directly

Calls 4

getActualRawConfigFunction · 0.85
ParseIntoStringFunction · 0.85
FatalMethod · 0.45

Tested by

no test coverage detected