Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 879 for Res (0.02 sec)

  1. pkg/monitoring/monitortest/test.go

    	res := map[metricKey]float64{}
    	metrics, err := reg.Gather()
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, metric := range metrics {
    		for _, row := range metric.Metric {
    			if row.Counter == nil {
    				continue
    			}
    			key := toMetricKey(row, metric)
    			res[key] = *row.Counter.Value
    		}
    	}
    	return res
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/it/admin/SuggestTests.java

            String response = checkGetMethod(searchBody, "").asString();
            final Map<String, Object> res = JsonPath.from(response).getMap("response.setting");
            assertTrue(res.containsKey("total_words_num"));
            assertTrue(res.containsKey("document_words_num"));
            assertTrue(res.containsKey("query_words_num"));
            assertEquals(new Integer(0), JsonPath.from(response).get("response.status"));
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/internal/pkgbits/sync.go

    func fmtFrames(pcs ...uintptr) []string {
    	res := make([]string, 0, len(pcs))
    	walkFrames(pcs, func(file string, line int, name string, offset uintptr) {
    		// Trim package from function name. It's just redundant noise.
    		name = strings.TrimPrefix(name, "cmd/compile/internal/noder.")
    
    		res = append(res, fmt.Sprintf("%s:%v: %s +0x%v", file, line, name, offset))
    	})
    	return res
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 04 17:12:28 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  4. pkg/api/service/util_test.go

    }
    
    func TestExternallyAccessible(t *testing.T) {
    	checkExternallyAccessible := func(expect bool, service *api.Service) {
    		t.Helper()
    		res := ExternallyAccessible(service)
    		if res != expect {
    			t.Errorf("Expected ExternallyAccessible = %v, got %v", expect, res)
    		}
    	}
    
    	checkExternallyAccessible(false, &api.Service{})
    	checkExternallyAccessible(false, &api.Service{
    		Spec: api.ServiceSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 15:18:45 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. src/go/format/format_test.go

    }
    
    func String(s string) (string, error) {
    	res, err := Source([]byte(s))
    	if err != nil {
    		return "", err
    	}
    	return string(res), nil
    }
    
    func TestPartial(t *testing.T) {
    	for _, src := range tests {
    		if strings.HasPrefix(src, "ERROR") {
    			// test expected to fail
    			src = src[5:] // remove ERROR prefix
    			res, err := String(src)
    			if err == nil && res == src {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:46 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  6. src/net/http/httptest/server_test.go

    		w.Write([]byte("hello"))
    	}))
    
    	res, err := http.Get(ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	got, err := io.ReadAll(res.Body)
    	res.Body.Close()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if string(got) != "hello" {
    		t.Fatalf("got %q, want hello", string(got))
    	}
    
    	ts.Close()
    
    	res, err = http.Get(ts.URL)
    	if err == nil {
    		body, _ := io.ReadAll(res.Body)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/ambient/services.go

    func getVIPs(svc *v1.Service) []string {
    	res := []string{}
    	if svc.Spec.ClusterIP != "" && svc.Spec.ClusterIP != v1.ClusterIPNone {
    		res = append(res, svc.Spec.ClusterIP)
    	}
    	for _, ing := range svc.Status.LoadBalancer.Ingress {
    		// IPs are strictly optional for loadbalancers - they may just have a hostname.
    		if ing.IP != "" {
    			res = append(res, ing.IP)
    		}
    	}
    	return res
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 12:29:55 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. src/net/http/fs_test.go

    				req.Header.Set(k, v)
    			}
    
    			c := ts.Client()
    			res, err := c.Do(req)
    			if err != nil {
    				t.Fatal(err)
    			}
    			io.Copy(io.Discard, res.Body)
    			res.Body.Close()
    			if res.StatusCode != tt.wantStatus {
    				t.Errorf("test %q using %q: got status = %d; want %d", testName, method, res.StatusCode, tt.wantStatus)
    			}
    			if g, e := res.Header.Get("Content-Type"), tt.wantContentType; g != e {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  9. pilot/pkg/status/distribution/reporter.go

    // only the resources we expect to be in flight, not the ones that have already distributed
    func (r *Reporter) AddInProgressResource(res config.Config) {
    	tryLedgerPut(r.ledger, res)
    	myRes := status.ResourceFromModelConfig(res)
    	if myRes == (status.Resource{}) {
    		scope.Errorf("Unable to locate schema for %v, will not update status.", res)
    		return
    	}
    	r.mu.Lock()
    	defer r.mu.Unlock()
    	r.inProgressResources[myRes.ToModelKey()] = &inProgressEntry{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/sets/set.go

    func List[T cmp.Ordered](s Set[T]) []T {
    	res := make(sortableSliceOfGeneric[T], 0, len(s))
    	for key := range s {
    		res = append(res, key)
    	}
    	sort.Sort(res)
    	return res
    }
    
    // UnsortedList returns the slice with contents in random order.
    func (s Set[T]) UnsortedList() []T {
    	res := make([]T, 0, len(s))
    	for key := range s {
    		res = append(res, key)
    	}
    	return res
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:51:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top