Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for wantRm (0.28 sec)

  1. src/net/writev_test.go

    			}
    		case "windows":
    			var wantCalls int
    			wantSum = want.Len()
    			if wantSum > 0 {
    				wantCalls = 1 // windows will always do 1 syscall, unless sending empty buffer
    			}
    			if len(writeLog.log) != wantCalls {
    				t.Errorf("write calls = %v; want %v", len(writeLog.log), wantCalls)
    			}
    		}
    		if gotSum != wantSum {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/iface_test.go

    	a += 2
    	if got := i.(int); got != 5 {
    		t.Errorf("wanted 5, got %d\n", got)
    	}
    }
    
    func TestEfaceConv2(t *testing.T) {
    	a := 5
    	sink = &a
    	i := interface{}(a)
    	a += 2
    	if got := i.(int); got != 5 {
    		t.Errorf("wanted 5, got %d\n", got)
    	}
    }
    
    func TestEfaceConv3(t *testing.T) {
    	x = 5
    	if got := e2int3(x); got != 5 {
    		t.Errorf("wanted 5, got %d\n", got)
    	}
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:53 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. pilot/pkg/xds/debug_test.go

    				}
    				if (ss.ClusterSent != "") != wantSent {
    					errorHandler("wanted ClusterSent set %v got %v for %v", wantSent, ss.ClusterSent, nodeID)
    				}
    				if (ss.ClusterAcked != "") != wantAcked {
    					errorHandler("wanted ClusterAcked set %v got %v for %v", wantAcked, ss.ClusterAcked, nodeID)
    				}
    				if (ss.ListenerSent != "") != wantSent {
    					errorHandler("wanted ListenerSent set %v got %v for %v", wantSent, ss.ListenerSent, nodeID)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/arm64/asm_arm64_test.go

    			v:      0xfe,
    			shift:  1,
    			wantHi: 0x0,
    			wantLo: 0x7f,
    		},
    		{
    			v:      0x10fe,
    			shift:  1,
    			wantHi: 0x0,
    			wantLo: 0x87f,
    		},
    		{
    			v:      0x2002,
    			shift:  1,
    			wantHi: 0x2000,
    			wantLo: 0x1,
    		},
    		{
    			v:      0xfffffe,
    			shift:  1,
    			wantHi: 0xffe000,
    			wantLo: 0xfff,
    		},
    		{
    			v:      0x1000ffe,
    			shift:  1,
    			wantHi: 0xfff000,
    			wantLo: 0xfff,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  5. 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)
  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. internal/grid/grid.go

    func GetByteBufferCap(wantSz int) []byte {
    	if wantSz < defaultBufferSize {
    		b := GetByteBuffer()[:0]
    		if cap(b) >= wantSz {
    			return b
    		}
    		PutByteBuffer(b)
    	}
    	if wantSz <= maxBufferSize {
    		b := *internal32KByteBuffer.Get().(*[]byte)
    		if cap(b) >= wantSz {
    			return b[:0]
    		}
    		internal32KByteBuffer.Put(&b)
    	}
    	return make([]byte, 0, wantSz)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Apr 02 15:56:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprog/coro.go

    		if !ok {
    			break
    		}
    		if v != 5 {
    			return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    		}
    	}
    	return nil
    }
    
    func callerExhaustLocked(i iter.Seq[int]) error {
    	runtime.LockOSThread()
    	next, _ := iter.Pull(i)
    	for {
    		v, ok := next()
    		if !ok {
    			break
    		}
    		if v != 5 {
    			return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    		}
    	}
    	runtime.UnlockOSThread()
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprogcgo/coro.go

    			break
    		}
    		if v != 5 {
    			return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    		}
    	}
    	return nil
    }
    
    func callerExhaustCallback(i iter.Seq[int]) (err error) {
    	callFromC(func() {
    		next, _ := iter.Pull(i)
    		for {
    			v, ok := next()
    			if !ok {
    				break
    			}
    			if v != 5 {
    				err = fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    			}
    		}
    	})
    	return err
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/ctl_test.go

    }
    
    func testPhiControl(t *testing.T) {
    	tests := [...][3]bool{ // a, b, want
    		{false, false, true},
    		{true, false, false},
    		{false, true, false},
    		{true, true, false},
    	}
    	for _, test := range tests {
    		a, b := test[0], test[1]
    		got := nor_ssa(a, b)
    		want := test[2]
    		if want != got {
    			t.Errorf("nor(%t, %t)=%t got %t", a, b, want, got)
    		}
    	}
    }
    
    func emptyRange_ssa(b []byte) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top