MCPcopy
hub / github.com/kubernetes/client-go / TestIsEmptyConfig

Function TestIsEmptyConfig

tools/clientcmd/validation_test.go:142–152  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

140}
141
142func TestIsEmptyConfig(t *testing.T) {
143 config := clientcmdapi.NewConfig()
144
145 err := Validate(*config)
146 if !IsEmptyConfig(err) {
147 t.Errorf("Expected context not found, but got %v", err)
148 }
149 if !IsConfigurationInvalid(err) {
150 t.Errorf("Expected configuration invalid, but got %v", err)
151 }
152}
153
154func TestIsConfigurationInvalid(t *testing.T) {
155 if newErrConfigurationInvalid([]error{}) != nil {

Callers

nothing calls this directly

Calls 4

ValidateFunction · 0.85
IsEmptyConfigFunction · 0.85
IsConfigurationInvalidFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected