Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 160 for tc (0.08 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values_test.go

    			equal: false,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			// Compare types with schema against themselves
    			if tc.lhs.Equal(tc.rhs) != types.Bool(tc.equal) {
    				t.Errorf("expected Equals to return %v", tc.equal)
    			}
    			if tc.rhs.Equal(tc.lhs) != types.Bool(tc.equal) {
    				t.Errorf("expected Equals to return %v", tc.equal)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. pilot/pkg/model/extensions_test.go

    			},
    			want: false,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.desc, func(t *testing.T) {
    			opts := WorkloadPolicyMatcher{
    				Namespace:      "ns",
    				WorkloadLabels: tc.proxyLabels,
    				IsWaypoint:     false,
    			}
    			got := tc.wasmPlugin.MatchListener(opts, tc.listenerInfo)
    			if tc.want != got {
    				t.Errorf("MatchListener got %v want %v", got, tc.want)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  3. cmd/kube-apiserver/app/options/validation_test.go

    			expectErrors:         true,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			err := validateMaxCIDRRange(tc.cidr, tc.maxCIDRBits, tc.cidrFlag)
    			if err != nil && !tc.expectErrors {
    				t.Errorf("expected no errors, error found %+v", err)
    			}
    
    			if err == nil && tc.expectErrors {
    				t.Errorf("expected errors, no errors found")
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. pkg/controller/ttlafterfinished/ttlafterfinished_controller.go

    		return
    	}
    
    	tc.queue.AddAfter(key, after)
    }
    
    func (tc *Controller) worker(ctx context.Context) {
    	for tc.processNextWorkItem(ctx) {
    	}
    }
    
    func (tc *Controller) processNextWorkItem(ctx context.Context) bool {
    	key, quit := tc.queue.Get()
    	if quit {
    		return false
    	}
    	defer tc.queue.Done(key)
    
    	err := tc.processJob(ctx, key)
    	tc.handleErr(err, key)
    
    	return true
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 23:59:28 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. src/index/suffixarray/suffixarray_test.go

    		t.Errorf("failed reading index %s (%s)", tc.name, err)
    	}
    	if !equal(x, &y) {
    		t.Errorf("restored index doesn't match saved index %s", tc.name)
    	}
    
    	return size
    }
    
    func testIndex(t *testing.T) {
    	for _, tc := range testCases {
    		x := New([]byte(tc.source))
    		testConstruction(t, &tc, x)
    		testSaveRestore(t, &tc, x)
    		testLookups(t, &tc, x, 0)
    		testLookups(t, &tc, x, 1)
    		testLookups(t, &tc, x, 10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. pkg/registry/core/pod/storage/eviction_test.go

    				pod := validNewPod()
    				pod.Name = tc.podName
    				pod.Labels = map[string]string{"a": "true"}
    				pod.Spec.NodeName = "foo"
    				if tc.podPhase != "" {
    					pod.Status.Phase = tc.podPhase
    				}
    
    				if tc.podTerminating {
    					currentTime := metav1.Now()
    					pod.ObjectMeta.DeletionTimestamp = &currentTime
    				}
    
    				// Setup pod condition
    				if tc.prc != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  7. pkg/proxy/util/nfacct/nfacct_linux_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			rnr, err := newInternal(tc.handler)
    			assert.NoError(t, err)
    
    			err = rnr.Add(tc.counterName)
    			if tc.err != nil {
    				assert.ErrorContains(t, err, tc.err.Error())
    			} else {
    				assert.NoError(t, err)
    			}
    
    			// validate number of requests
    			assert.Equal(t, tc.netlinkCalls, len(tc.handler.requests))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  8. pilot/pkg/security/authz/model/generator_test.go

    				if err != nil {
    					t.Errorf("both permission and principal returned error")
    				}
    			} else {
    				_, err1 := tc.g.principal(tc.key, tc.value, tc.forTCP, false)
    				_, err2 := tc.g.permission(tc.key, tc.value, tc.forTCP)
    				if err1 == nil || err2 == nil {
    					t.Fatalf("wanted error")
    				}
    				return
    			}
    			if diff := cmp.Diff(got, tc.want, protocmp.Transform()); diff != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/accesslog_test.go

    			tcp:      &tcp.TcpProxy{},
    			class:    networking.ListenerClassSidecarInbound,
    			expected: &tcp.TcpProxy{},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			b.setTCPAccessLog(tc.push, tc.proxy, tc.tcp, tc.class, nil)
    			assert.Equal(t, tc.expected, tc.tcp)
    		})
    	}
    }
    
    func TestSetHttpAccessLog(t *testing.T) {
    	b := newAccessLogBuilder()
    
    	env := newTestEnviroment()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/token_test.go

    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			token := outputapiv1alpha3.BootstrapToken{
    				BootstrapToken: bootstraptokenv1.BootstrapToken{
    					Token:       &bootstraptokenv1.BootstrapTokenString{ID: tc.id, Secret: tc.secret},
    					Description: tc.description,
    					Usages:      tc.usages,
    					Groups:      tc.extraGroups,
    				},
    			}
    			buf := bytes.Buffer{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top