Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testKey1 (0.4 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    	testCases := []struct {
    		key                 string
    		expectAttachedCount int64
    	}{
    		{
    			key:                 "testkey1",
    			expectAttachedCount: 1,
    		},
    		{
    			key:                 "testkey2",
    			expectAttachedCount: 2,
    		},
    		{
    			key: "testkey3",
    			// We assume each time has 1 object attached to the lease
    			// so after granting a new lease, the recorded count is set to 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  2. cmd/sftp-server_test.go

    	if err != nil {
    		c.Fatalf("could not read test key file: %s", err)
    	}
    
    	testKey, _, _, _, err := ssh.ParseAuthorizedKey(keyBytes)
    	if err != nil {
    		c.Fatalf("could not parse test key file: %s", err)
    	}
    
    	newSSHCon := newSSHConnMock("dillon=ldap")
    	_, err = sshPubKeyAuth(newSSHCon, testKey)
    	if err == nil || !errors.Is(err, errAuthentication) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. src/maps/iter_test.go

    			if !ok || v != v1 {
    				t.Errorf("at iteration %d got %d, %d want %d, %d", cnt, i, v, i, v1)
    			}
    			cnt++
    		}
    		if cnt != size {
    			t.Errorf("read %d values expected %d", cnt, size)
    		}
    	}
    }
    
    func TestKeys(t *testing.T) {
    	for size := 0; size < 10; size++ {
    		var want []int
    		m := make(map[int]int)
    		for i := range size {
    			m[i] = i
    			want = append(want, i)
    		}
    
    		var got []int
    		for k := range Keys(m) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:44:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top