- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ExpectedMap (0.27 sec)
-
src/net/http/cgi/host_test.go
func runCgiTest(t *testing.T, h *Handler, httpreq string, expectedMap map[string]string, checks ...func(reqInfo map[string]string)) *httptest.ResponseRecorder { rw := httptest.NewRecorder() req := newRequest(httpreq) h.ServeHTTP(rw, req) runResponseChecks(t, rw, expectedMap, checks...) return rw } func runResponseChecks(t *testing.T, rw *httptest.ResponseRecorder, expectedMap map[string]string, checks ...func(reqInfo map[string]string)) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 18:29:59 UTC 2024 - 13.3K bytes - Viewed (0) -
pkg/proxy/endpointslicecache_test.go
cmc.Check(t) }) } } func TestEndpointInfoByServicePort(t *testing.T) { testCases := map[string]struct { namespacedName types.NamespacedName endpointSlices []*discovery.EndpointSlice hostname string expectedMap spToEndpointMap }{ "simple use case with 3 endpoints": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:07:21 UTC 2024 - 24.9K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/testing/testing.go
} if !reflect.DeepEqual(expectedMap, gotMap) { // Print ugly but useful diff of expected and received objects for // easier debugging. return fmt.Errorf("Volume check failed [A-expected, B-got]: %s", cmp.Diff(expectedMap, gotMap)) } return nil } // CheckClaims compares all expectedClaims with set of claims at the end of the // test and reports differences.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 20.1K bytes - Viewed (0)