(t *testing.T)
| 28 | ) |
| 29 | |
| 30 | func 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 | |
| 43 | func TestEnvSettings(t *testing.T) { |
| 44 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…