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

Function Test_ApplyExtraFlagsWithEmpty

pkg/util/flags/flags_test.go:13–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func Test_ApplyExtraFlagsWithEmpty(t *testing.T) {
14 mycmd := cobra.Command{}
15 flags, err := ApplyExtraFlags(&mycmd, []string{}, false)
16 assert.NilError(t, err, "Error applying extra flags")
17 assert.Equal(t, 0, len(flags), "Flags should be empty")
18}
19
20func Test_ApplyExtraFlagsWithDevspaceFlags(t *testing.T) {
21 devspaceFlags := env.GlobalGetEnv("DEVSPACE_FLAGS")

Callers

nothing calls this directly

Calls 2

ApplyExtraFlagsFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected