Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 412 for wantReg (0.2 sec)

  1. src/net/textproto/reader_test.go

    	}
    	if code != 550 {
    		t.Errorf("ReadResponse: code=%d, want %d", code, 550)
    	}
    	if msg != wantMsg {
    		t.Errorf("ReadResponse: msg=%q, want %q", msg, wantMsg)
    	}
    	if err != nil && err.Error() != "550 "+wantMsg {
    		t.Errorf("ReadResponse: error=%q, want %q", err.Error(), "550 "+wantMsg)
    	}
    }
    
    func TestCommonHeaders(t *testing.T) {
    	commonHeaderOnce.Do(initCommonHeader)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. src/testing/iotest/reader_test.go

    	}
    
    	b = make([]byte, 5)
    	n, err := obr.Read(b)
    	if g, w := err, io.EOF; g != w {
    		t.Errorf("Error mismatch\n\tGot:  %v\n\tWant: %v", g, w)
    	}
    	if g, w := n, 0; g != w {
    		t.Errorf("Unexpectedly read %d bytes, wanted %d", g, w)
    	}
    }
    
    func TestHalfReader_nonEmptyReader(t *testing.T) {
    	msg := "Hello, World!"
    	buf := new(bytes.Buffer)
    	buf.WriteString(msg)
    	// empty read buffer
    	hr := HalfReader(buf)
    	var b []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 07:03:10 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  3. pilot/pkg/credentials/kube/secrets_test.go

    				t.Errorf("got key %q, wanted %q", string(actualKey), tt.key)
    			}
    			if tt.cert != string(actualCert) {
    				t.Errorf("got cert %q, wanted %q", string(actualCert), tt.cert)
    			}
    			if tt.staple != string(actualStaple) {
    				t.Errorf("got staple %q, wanted %q", string(actualStaple), tt.staple)
    			}
    			if tt.crl != string(actualCrl) {
    				t.Errorf("got crl %q, wanted %q", string(actualCrl), tt.crl)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/slice_test.go

    		for i := 0; i < N; i++ {
    			x.s = x.s[0:8] // should only write len
    		}
    		done <- struct{}{}
    	}()
    	<-done
    	<-done
    
    	if cap(x.s) != cap(a)-N {
    		t.Errorf("wanted cap=%d, got %d\n", cap(a)-N, cap(x.s))
    	}
    	if &x.s[0] != &a[N] {
    		t.Errorf("wanted ptr=%p, got %p\n", &a[N], &x.s[0])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 850 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug_lines_test.go

    				newGotStmts = append(newGotStmts, x)
    			}
    		}
    		if !reflect.DeepEqual(wantStmts, newGotStmts) {
    			t.Errorf("wanted stmts %v but got %v (with repeats still in: %v)", wantStmts, newGotStmts, gotStmts)
    		}
    
    	} else {
    		if !reflect.DeepEqual(wantStmts, gotStmts) {
    			t.Errorf("wanted stmts %v but got %v", wantStmts, gotStmts)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. pkg/config/validation/agent/validation_test.go

    			if err == nil && tt.out != "" {
    				t.Fatalf("ValidateWildcardDomain(%v) = nil, wanted %q", tt.in, tt.out)
    			} else if err != nil && tt.out == "" {
    				t.Fatalf("ValidateWildcardDomain(%v) = %v, wanted nil", tt.in, err)
    			} else if err != nil && !strings.Contains(err.Error(), tt.out) {
    				t.Fatalf("ValidateWildcardDomain(%v) = %v, wanted %q", tt.in, err, tt.out)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  7. src/runtime/ehooks_test.go

    				t.Fatalf("failed%s mode %s: wanted %q\noutput:\n%s", bt,
    					s.mode, s.expected, outs)
    			}
    			for _, need := range s.musthave {
    				if !strings.Contains(outs, need) {
    					t.Fatalf("failed mode %s: output does not contain %q\noutput:\n%s",
    						s.mode, need, outs)
    				}
    			}
    			if s.expected == "" && s.musthave == nil && outs != "" {
    				t.Errorf("failed mode %s: wanted no output\noutput:\n%s", s.mode, outs)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/log/slog/text_handler_test.go

    	"testing"
    	"time"
    )
    
    var testTime = time.Date(2000, 1, 2, 3, 4, 5, 0, time.UTC)
    
    func TestTextHandler(t *testing.T) {
    	for _, test := range []struct {
    		name             string
    		attr             Attr
    		wantKey, wantVal string
    	}{
    		{
    			"unquoted",
    			Int("a", 1),
    			"a", "1",
    		},
    		{
    			"quoted",
    			String("x = y", `qu"o`),
    			`"x = y"`, `"qu\"o"`,
    		},
    		{
    			"String method",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 19:05:59 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. 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)
  10. cmd/kubeadm/app/phases/markcontrolplane/markcontrolplane_test.go

    			},
    			existingTaints: []v1.Taint{kubeadmconstants.ControlPlaneTaint},
    			newTaints:      []v1.Taint{kubeadmconstants.ControlPlaneTaint},
    			expectedPatch:  `{}`,
    		},
    		{
    			name: "has taint and no new taints wanted",
    			existingLabels: []string{
    				kubeadmconstants.LabelNodeRoleControlPlane,
    				kubeadmconstants.LabelExcludeFromExternalLB,
    			},
    			existingTaints: []v1.Taint{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 25 14:22:20 UTC 2022
    - 5K bytes
    - Viewed (0)
Back to top