MCPcopy Index your code
hub / github.com/helm/helm / TestSetNamespace

Function TestSetNamespace

pkg/cli/environment_test.go:30–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28)
29
30func TestSetNamespace(t *testing.T) {
31 settings := New()
32
33 if settings.namespace != "" {
34 t.Errorf("Expected empty namespace, got %s", settings.namespace)
35 }
36
37 settings.SetNamespace("testns")
38 if settings.namespace != "testns" {
39 t.Errorf("Expected namespace testns, got %s", settings.namespace)
40 }
41}
42
43func TestEnvSettings(t *testing.T) {
44 tests := []struct {

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
SetNamespaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…