Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 316 for tc (0.23 sec)

  1. 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)
  2. 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)
  3. security/pkg/util/jwtutil_test.go

    		},
    	}
    
    	for id, tc := range testCases {
    		t.Run(id, func(t *testing.T) {
    			exp, err := GetExp(tc.jwt)
    			if err != nil && tc.expectedErr == nil || err == nil && tc.expectedErr != nil {
    				t.Errorf("%s: Got error \"%v\", expected error \"%v\"", id, err, tc.expectedErr)
    			} else if err != nil && tc.expectedErr != nil && err.Error() != tc.expectedErr.Error() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. security/pkg/server/ca/authenticate/kubeauth/kube_jwt_test.go

    		},
    	}
    
    	for id, tc := range testCases {
    		t.Run(id, func(t *testing.T) {
    			ctx := context.Background()
    			if tc.metadata != nil {
    				if tc.token != "" {
    					token := security.BearerTokenPrefix + tc.token
    					tc.metadata.Append("authorization", token)
    				}
    				ctx = metadata.NewIncomingContext(ctx, tc.metadata)
    			}
    
    			tokenReview := &k8sauth.TokenReview{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition_test.go

    			strictCostEnforcement: false,
    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			compiler, err := NewCompositedCompiler(environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), tc.strictCostEnforcement))
    			if err != nil {
    				t.Fatal(err)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/upgrade/diff_test.go

    			expectedError: true,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			flags.cfgPath = tc.cfgPath
    			flags.kubeConfigPath = kubeConfigPath
    			cmd := newCmdDiff(os.Stdout)
    			if tc.setManifestPath {
    				flags.apiServerManifestPath = tc.manifestPath
    				flags.controllerManagerManifestPath = tc.manifestPath
    				flags.schedulerManifestPath = tc.manifestPath
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 04:08:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testsanitizers/tsan_test.go

    		{src: "tsan15.go", needsRuntime: true},
    	}
    	for _, tc := range cases {
    		tc := tc
    		name := strings.TrimSuffix(tc.src, ".go")
    		t.Run(name, func(t *testing.T) {
    			t.Parallel()
    
    			dir := newTempDir(t)
    			defer dir.RemoveAll(t)
    
    			outPath := dir.Join(name)
    			mustRun(t, config.goCmd("build", "-o", outPath, srcPath(tc.src)))
    
    			cmd := hangProneCmd(outPath)
    			if tc.needsRuntime {
    				config.skipIfRuntimeIncompatible(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 21:14:49 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. pkg/proxy/util/endpoints_test.go

    		{"1.2.3:8080", "", "invalid ip part"},
    	}
    
    	for _, tc := range testCases {
    		ip := IPPart(tc.endpoint)
    		if tc.expectedError == noError {
    			if ip != tc.expectedIP {
    				t.Errorf("Unexpected IP for %s: Expected: %s, Got %s", tc.endpoint, tc.expectedIP, ip)
    			}
    		} else if ip != "" {
    			t.Errorf("Error did not occur for %s, expected: '%s' error", tc.endpoint, tc.expectedError)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. cmd/import-boss/main_test.go

    		expect: false,
    	}, {
    		base:   "/foo/bar/bat/qux/zrb",
    		pfx:    "/foo/bar/bat",
    		expect: true,
    	}}
    
    	for _, tc := range cases {
    		ret := hasPathPrefix(tc.base, tc.pfx)
    		if ret != tc.expect {
    			t.Errorf("expected %v, got %v: (%q, %q)", tc.expect, ret, tc.base, tc.pfx)
    		}
    	}
    }
    
    func checkAllErrorStrings(t *testing.T, errs []error, expect []string) {
    	t.Helper()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. 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)
Back to top