- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for makeHandler (0.12 sec)
-
pkg/kubelet/pluginmanager/plugin_manager_test.go
pluginManager.Run(sourcesReady, stopChan) }() // Add handler for device plugin fakeHandler := newFakePluginHandler() pluginManager.AddHandler(registerapi.DevicePlugin, fakeHandler) const maxDepth = 3 // Make sure the plugin manager is aware of the socket in subdirectories for i := 0; i < maxDepth; i++ { fakeHandler.Reset() pluginDir := socketDir for j := 0; j < i; j++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/translatinghandler_test.go
"net/http" "testing" "github.com/stretchr/testify/require" "k8s.io/apimachinery/pkg/util/httpstream/wsstream" ) // fakeHandler implements http.Handler interface type fakeHandler struct { served bool } // ServeHTTP stores the fact that this fake handler was called. func (fh *fakeHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { fh.served = true } func TestTranslatingHandler(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 3.6K bytes - Viewed (0)