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

Function TestToleratingMissingFiles

tools/clientcmd/loader_test.go:95–104  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

93}
94
95func TestToleratingMissingFiles(t *testing.T) {
96 loadingRules := ClientConfigLoadingRules{
97 Precedence: []string{"bogus1", "bogus2", "bogus3"},
98 }
99
100 _, err := loadingRules.Load()
101 if err != nil {
102 t.Fatalf("Unexpected error: %v", err)
103 }
104}
105
106func TestErrorReadingFile(t *testing.T) {
107 commandLineFile, _ := ioutil.TempFile("", "")

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.95

Tested by

no test coverage detected