Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ExpectedMap (0.14 sec)

  1. 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)
  2. 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)
  3. cmd/server_test.go

    }
    
    func (s *TestSuiteCommon) TestCors(c *check) {
    	expectedMap := http.Header{}
    	expectedMap.Set("Access-Control-Allow-Credentials", "true")
    	expectedMap.Set("Access-Control-Allow-Origin", "http://foobar.com")
    	expectedMap["Access-Control-Expose-Headers"] = []string{
    		"Date",
    		"Etag",
    		"Server",
    		"Connection",
    		"Accept-Ranges",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
Back to top