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

Function TestValidateCleanClusterInfo

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

Source from the content-addressed store, hash-verified

245}
246
247func TestValidateCleanClusterInfo(t *testing.T) {
248 config := clientcmdapi.NewConfig()
249 config.Clusters["clean"] = &clientcmdapi.Cluster{
250 Server: "anything",
251 }
252 test := configValidationTest{
253 config: config,
254 }
255
256 test.testCluster("clean", t)
257 test.testConfig(t)
258}
259
260func TestValidateCleanWithCAClusterInfo(t *testing.T) {
261 tempFile, _ := ioutil.TempFile("", "")

Callers

nothing calls this directly

Calls 2

testClusterMethod · 0.95
testConfigMethod · 0.95

Tested by

no test coverage detected