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

Function TestValidateEmptyConfig

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

Source from the content-addressed store, hash-verified

106}
107
108func TestValidateEmptyConfig(t *testing.T) {
109 config := clientcmdapi.NewConfig()
110 test := configValidationTest{
111 config: config,
112 expectedErrorSubstring: []string{"invalid configuration: no configuration has been provided"},
113 }
114
115 test.testConfig(t)
116}
117
118func TestValidateMissingCurrentContextConfig(t *testing.T) {
119 config := clientcmdapi.NewConfig()

Callers

nothing calls this directly

Calls 1

testConfigMethod · 0.95

Tested by

no test coverage detected