Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for wantReg (0.21 sec)

  1. src/cmd/internal/obj/riscv/obj.go

    func wantIntReg(ctxt *obj.Link, ins *instruction, pos string, r uint32) {
    	wantReg(ctxt, ins, pos, "integer", r, REG_X0, REG_X31)
    }
    
    // wantFloatReg checks that r is a floating-point register.
    func wantFloatReg(ctxt *obj.Link, ins *instruction, pos string, r uint32) {
    	wantReg(ctxt, ins, pos, "float", r, REG_F0, REG_F31)
    }
    
    // wantEvenOffset checks that the offset is a multiple of two.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_client_test.go

    			return fmt.Errorf("got len(PeerCertificates) = %d, wanted 1", l)
    		}
    		if len(c.VerifiedChains) == 0 {
    			return fmt.Errorf("got len(VerifiedChains) = 0, wanted non-zero")
    		}
    		if isClient && len(c.OCSPResponse) == 0 {
    			return fmt.Errorf("got len(OCSPResponse) = 0, wanted non-zero")
    		}
    		*called = true
    		return nil
    	}
    
    	tests := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  3. pkg/controller/history/controller_history_test.go

    		if test.rename {
    			if created.Name == test.revision.Name {
    				t.Errorf("%s: wanted rename got %s %s", test.name, created.Name, test.revision.Name)
    			}
    			expectedName := ControllerRevisionName(test.parent.GetName(), HashControllerRevision(test.revision, &collisionCount))
    			if created.Name != expectedName {
    				t.Errorf("%s: on name collision wanted new name %s got %s", test.name, expectedName, created.Name)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_server_test.go

    			} else {
    				clientConn.SetReadDeadline(time.Now().Add(1 * time.Minute))
    			}
    			n, err := io.ReadFull(clientConn, bb)
    			if err != nil {
    				t.Fatalf("%s #%d: %s\nRead %d, wanted %d, got %x, wanted %x\n", test.name, i+1, err, n, len(bb), bb[:n], b)
    			}
    			if !bytes.Equal(b, bb) {
    				t.Fatalf("%s #%d: mismatch on read: got:%x want:%x", test.name, i+1, bb, b)
    			}
    		}
    		clientConn.Close()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    		if decision != decisionSkipFilter && atomicReadOnlyExecuting != 1 {
    			t.Errorf("Wanted %d requests executing, got %d", 1, atomicReadOnlyExecuting)
    		}
    	}
    	postExecuteFunc := func() {}
    	// atomicReadOnlyWaiting can be either 0 or 1 as we test one request at a time.
    	postEnqueueFunc := func() {
    		if atomicReadOnlyWaiting != 1 {
    			t.Errorf("Wanted %d requests in queue, got %d", 1, atomicReadOnlyWaiting)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  6. src/net/dnsclient_unix_test.go

    			if lookups != 1 {
    				t.Errorf("got %d lookups, wanted 1", lookups)
    			}
    
    			if err == nil {
    				t.Fatal("expected an error")
    			}
    			de, ok := err.(*DNSError)
    			if !ok {
    				t.Fatalf("err = %#v; wanted a *net.DNSError", err)
    			}
    			if de.Err != errNoSuchHost.Error() {
    				t.Fatalf("Err = %#v; wanted %q", de.Err, errNoSuchHost.Error())
    			}
    			if !de.IsNotFound {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  7. pilot/pkg/model/push_context_test.go

    		servicePort       int
    		serviceResolution Resolution
    		serviceInstances  []*ServiceInstance
    		wanted            MutualTLSMode
    	}{
    		{
    			name:              "from namespace policy",
    			serviceNamespace:  wholeNS,
    			servicePort:       80,
    			serviceResolution: ClientSideLB,
    			wanted:            MTLSStrict,
    		},
    		{
    			name:              "from mesh default",
    			serviceNamespace:  partialNS,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  8. src/net/http/client_test.go

    	req.RequestURI = "/this/field/is/illegal/and/should/error/"
    	_, err := DefaultClient.Do(req)
    	if err == nil {
    		t.Fatalf("expected an error")
    	}
    	if !strings.Contains(err.Error(), "RequestURI") {
    		t.Errorf("wanted error mentioning RequestURI; got error: %v", err)
    	}
    }
    
    func TestClientWithCorrectTLSServerName(t *testing.T) {
    	run(t, testClientWithCorrectTLSServerName, []testMode{https1Mode, http2Mode})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  9. src/net/http/httputil/reverseproxy_test.go

    		t.Fatalf("reading body: %v", err)
    	}
    	if string(slurp) != msg {
    		t.Errorf("msg = %q; want %q", slurp, msg)
    	}
    	wantLog := []string{"getBuf", "putBuf-" + strconv.Itoa(size)}
    	mu.Lock()
    	defer mu.Unlock()
    	if !reflect.DeepEqual(log, wantLog) {
    		t.Errorf("Log events = %q; want %q", log, wantLog)
    	}
    }
    
    func TestReverseProxy_Post(t *testing.T) {
    	const backendResponse = "I am the backend"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  10. src/time/time.go

    	if version != timeBinaryVersionV1 && version != timeBinaryVersionV2 {
    		return errors.New("Time.UnmarshalBinary: unsupported version")
    	}
    
    	wantLen := /*version*/ 1 + /*sec*/ 8 + /*nsec*/ 4 + /*zone offset*/ 2
    	if version == timeBinaryVersionV2 {
    		wantLen++
    	}
    	if len(buf) != wantLen {
    		return errors.New("Time.UnmarshalBinary: invalid length")
    	}
    
    	buf = buf[1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
Back to top