Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 373 for wantRm (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/types_test.go

    		t.Errorf("got %s, wanted key type of string", mp.KeyType.TypeName())
    	}
    	if mp.ElemType.TypeName() != "int" {
    		t.Errorf("got %s, wanted elem type of int", mp.ElemType.TypeName())
    	}
    	expT, err := mp.ExprType()
    	if err != nil {
    		t.Errorf("fail to get cel type: %s", err)
    	}
    	if expT.GetMapType() == nil {
    		t.Errorf("got %v, wanted CEL map type", expT)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. src/iter/pull_test.go

    				wantNG(1)
    			}
    			wantNG(1)
    			if end < 3 {
    				stop()
    				wantNG(0)
    			}
    			for range 2 {
    				k, v, ok := next()
    				if v != 0 || ok != false {
    					t.Fatalf("next() = %d, %d, %v, want %d, %d, %v", k, v, ok, 0, 0, false)
    				}
    				wantNG(0)
    			}
    			wantNG(0)
    
    			stop()
    			stop()
    			stop()
    			wantNG(0)
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/runtime/sigqueue.go

    func signal_disable(s uint32) {
    	if s >= uint32(len(sig.wanted)*32) {
    		return
    	}
    	sigdisable(s)
    
    	w := sig.wanted[s/32]
    	w &^= 1 << (s & 31)
    	atomic.Store(&sig.wanted[s/32], w)
    }
    
    // Must only be called from a single goroutine at a time.
    //
    //go:linkname signal_ignore os/signal.signal_ignore
    func signal_ignore(s uint32) {
    	if s >= uint32(len(sig.wanted)*32) {
    		return
    	}
    	sigignore(s)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. src/runtime/defer_test.go

    	defer func() {
    		if globint1 != 1 {
    			t.Fatalf("globint1:  wanted: 1, got %v", globint1)
    		}
    		if save1 != 5 {
    			t.Fatalf("save1:  wanted: 5, got %v", save1)
    		}
    		if globint2 != 1 {
    			t.Fatalf("globint2:  wanted: 1, got %v", globint2)
    		}
    		if save2 != 2 {
    			t.Fatalf("save2:  wanted: 2, got %v", save2)
    		}
    		if save3 != 4 {
    			t.Fatalf("save3:  wanted: 4, got %v", save3)
    		}
    		if globint3 != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:57:24 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/float_test.go

    	}
    	if got := cvt7(3.5); got != 3 {
    		t.Errorf("cvt7 got %d, wanted 3", got)
    	}
    	if got := cvt8(3.5); got != 3 {
    		t.Errorf("cvt8 got %d, wanted 3", got)
    	}
    	if got := cvt9(3.5); got != 3 {
    		t.Errorf("cvt9 got %d, wanted 3", got)
    	}
    	if got := cvt10(3.5); got != 3 {
    		t.Errorf("cvt10 got %d, wanted 3", got)
    	}
    	if got := cvt11(3.5); got != 3 {
    		t.Errorf("cvt11 got %d, wanted 3", got)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  6. src/net/http/cgi/integration_test.go

    		name   string
    		body   string
    		wantCT string
    	}{
    		{
    			name:   "no body",
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    			name:   "html",
    			body:   "<html><head><title>test page</title></head><body>This is a body</body></html>",
    			wantCT: "text/html; charset=utf-8",
    		},
    		{
    			name:   "text",
    			body:   strings.Repeat("gopher", 86),
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 18:42:44 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  7. test/typeparam/combine.go

    	if got, ok := gc(); ok {
    		panic(fmt.Sprintf("got %v, %v, wanted -/false", got, ok))
    	}
    	gc2 := Combine2(g1, g2)
    	if got, ok := gc2(); ok {
    		panic(fmt.Sprintf("got %v, %v, wanted -/false", got, ok))
    	}
    
    	gc3 := Combine(g1, g3, _NewPair[int, string])
    	if got, ok := gc3(); !ok || got.A != 3 || got.B != "y" {
    		panic(fmt.Sprintf("got %v, %v, wanted {3, y}, true", got, ok))
    	}
    	gc4 := Combine2(g1, g3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/continue_test.go

    				return
    			}
    			if gotFromKey != tt.wantFromKey {
    				t.Errorf("decodeContinue() gotFromKey = %v, want %v", gotFromKey, tt.wantFromKey)
    			}
    			if gotRv != tt.wantRv {
    				t.Errorf("decodeContinue() gotRv = %v, want %v", gotRv, tt.wantRv)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 17:30:02 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  9. test/typeparam/issue50002.go

    }
    
    func F[T, A any](x I[T], shouldMatch bool) {
    	switch x.(type) {
    	case A:
    		if !shouldMatch {
    			fmt.Printf("wanted mis-match, got match")
    		}
    	default:
    		if shouldMatch {
    			fmt.Printf("wanted match, got mismatch")
    		}
    	}
    
    	_, ok := x.(A)
    	if ok != shouldMatch {
    		fmt.Printf("ok: got %v, wanted %v", ok, shouldMatch)
    	}
    
    	if !shouldMatch {
    		defer func() {
    			if shouldMatch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/arith_test.go

    	wantA, wantB, wantC, wantD := uint8(0xe1), uint16(0xe001),
    		uint32(0xe0000001), uint64(0xe000000000000001)
    	a, b, c, d := lrot1_ssa(0xf, 0xf, 0xf, 0xf)
    	if a != wantA || b != wantB || c != wantC || d != wantD {
    		t.Errorf("lrot1_ssa(0xf, 0xf, 0xf, 0xf)=%d %d %d %d, got %d %d %d %d", wantA, wantB, wantC, wantD, a, b, c, d)
    	}
    	x := lrot2_ssa(0xb0000001, 32)
    	wantX := uint32(0xb0000001)
    	if x != wantX {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
Back to top