Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,875 for gots (0.04 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/promise/promise_test.go

    	later := time.Now()
    	bval := &later
    	if wr.Set(bval) {
    		t.Error("Set of initialized promise returned true")
    	}
    	goGetAndExpect(t, wr, gots, aval)
    	cancel()
    	time.Sleep(time.Second) // give it a chance to misbehave
    	goGetAndExpect(t, wr, gots, aval)
    }
    
    func goGetExpectNotYet(t *testing.T, wr WriteOnce, gots chan interface{}, trigger string) {
    	go func() {
    		gots <- wr.Get()
    	}()
    	select {
    	case <-gots:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 19:19:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting_test.go

    	grc.Add(1)
    	go func() {
    		defer grc.Add(-1)
    		gots <- wr.Get()
    	}()
    	clk.Run(nil)
    	expectGotValue(t, gots, expected)
    }
    
    func expectGotValue(t *testing.T, gots <-chan interface{}, expected interface{}) {
    	select {
    	case gotVal := <-gots:
    		t.Logf("Got %v", gotVal)
    		if gotVal != expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 10 14:37:53 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  3. cmd/data-scanner_test.go

    	for i, fi := range fivs[:2] {
    		wants[i] = fi.ToObjectInfo(bucket, obj, versioned)
    	}
    	gots, err := item.applyNewerNoncurrentVersionLimit(context.TODO(), objAPI, fivs, es)
    	if err != nil {
    		t.Fatalf("Failed with err: %v", err)
    	}
    	if len(gots) != len(wants) {
    		t.Fatalf("Expected %d objects but got %d", len(wants), len(gots))
    	}
    
    	// Close expiry state's channel to inspect object versions enqueued for expiration
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 03 11:18:58 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. internal/s3select/select_test.go

    			if err != nil {
    				t.Error(err)
    				return
    			}
    			got, err := io.ReadAll(res)
    			if err != nil {
    				t.Error(err)
    				return
    			}
    			gotS := strings.TrimSpace(string(got))
    			if !reflect.DeepEqual(gotS, testCase.wantResult) {
    				t.Errorf("received response does not match with expected reply. Query: %s\ngot: %s\nwant:%s", testCase.query, gotS, testCase.wantResult)
    			}
    		})
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 76.2K bytes
    - Viewed (0)
  5. pilot/pkg/security/authz/builder/builder_test.go

    			}
    			got := g.BuildTCP()
    			verify(t, convertTCP(got), baseDir, tc.want, true /* forTCP */)
    		})
    	}
    }
    
    func verify(t *testing.T, gots []proto.Message, baseDir string, wants []string, forTCP bool) {
    	t.Helper()
    
    	if len(gots) != len(wants) {
    		t.Fatalf("got %d configs but want %d", len(gots), len(wants))
    	}
    	for i, got := range gots {
    		gotYaml, err := protomarshal.ToYAML(got)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. tests/preload_suits_test.go

    		t.Errorf("got %s; want %s", toJSONString(got2), toJSONString(want2))
    	}
    
    	var got3 []Level2
    	if err := DB.Preload("Level1s").Find(&got3, "value IN (?)", []string{"Bob", "Tom"}).Error; err != nil {
    		t.Error(err)
    	}
    
    	if !reflect.DeepEqual(got3, []Level2{got, got2}) {
    		t.Errorf("got %s; want %s", toJSONString(got3), toJSONString([]Level2{got, got2}))
    	}
    
    	var got4 []Level2
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Mar 18 05:38:46 UTC 2022
    - 30.3K bytes
    - Viewed (0)
  7. operator/cmd/mesh/test-util_test.go

    	node := actual.(map[string]any)
    	got, f, err := tpath.GetPathContext(node, util.PathFromString(pv.path), false)
    	if err != nil || !f {
    		return false, err
    	}
    	if reflect.TypeOf(got.Node) != reflect.TypeOf(pv.value) {
    		return false, fmt.Errorf("comparison types don't match: got %v(%T), want %v(%T)", got.Node, got.Node, pv.value, pv.value)
    	}
    	if !reflect.DeepEqual(got.Node, pv.value) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  8. pilot/pkg/model/sidecar_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			ilw := &IstioEgressListenerWrapper{}
    			got := ilw.selectServices(tt.services, tt.namespace, tt.listenerHosts)
    			if !reflect.DeepEqual(got, tt.expected) {
    				gots, _ := json.MarshalIndent(got, "", "  ")
    				expecteds, _ := json.MarshalIndent(tt.expected, "", "  ")
    				t.Errorf("Got %v, expected %v", string(gots), string(expecteds))
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 09:38:49 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  9. src/internal/goos/goos.go

    // license that can be found in the LICENSE file.
    
    // package goos contains GOOS-specific constants.
    package goos
    
    // The next line makes 'go generate' write the zgoos*.go files with
    // per-OS information, including constants named Is$GOOS for every
    // known GOOS. The constant is 1 on the current system, 0 otherwise;
    // multiplying by them is useful for defining GOOS-specific constants.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 534 bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/net/http/httpguts/guts.go

    Bryan C. Mills <******@****.***> 1551453150 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 1.4K bytes
    - Viewed (0)
Back to top