Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 103 for Cases (0.07 sec)

  1. pkg/controller/job/job_controller_test.go

    const fastJobApiBackoff = 10 * time.Millisecond
    const fastRequeue = 10 * time.Millisecond
    
    // testFinishedAt represents time one second later than unix epoch
    // this will be used in various test cases where we don't want back-off to kick in
    var testFinishedAt = metav1.NewTime((time.Time{}).Add(time.Second))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  2. pkg/controller/daemon/daemon_controller_test.go

    	podPriority := scheduling.SystemCriticalPriority
    	ds.Spec.Template.Spec.Priority = &podPriority
    }
    
    func TestNodeShouldRunDaemonPod(t *testing.T) {
    	shouldRun := true
    	shouldContinueRunning := true
    	cases := []struct {
    		predicateName                    string
    		podsOnNode                       []*v1.Pod
    		nodeCondition                    []v1.NodeCondition
    		nodeUnschedulable                bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    		},
    		{
    			podWithOnlyOrphanFinalizer("pod4"),
    			orphanOptions,
    			defaultDeleteStrategy,
    			false,
    			[]string{metav1.FinalizerOrphanDependents},
    		},
    		// cases run with DeleteOptions.OrphanDedependents=false
    		// these cases all have oprhanDeleteStrategy, which should be ignored
    		// because DeleteOptions has the highest priority.
    		{
    			podWithOrphanFinalizer("pod5"),
    			nonOrphanOptions,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch_test.go

    			}
    		}
    	}
    }
    
    // These are test cases for StrategicMergePatch that cannot be generated using
    // CreateTwoWayMergePatch because it may be one of the following cases:
    // - not use the replace directive.
    // - generate duplicate integers for a merging list patch.
    // - generate empty merging lists.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 16:45:45 UTC 2023
    - 130.4K bytes
    - Viewed (0)
  5. pkg/apis/batch/validation/validation_test.go

    	newSelector.MatchLabels["foo"] = "bar"
    	validTolerations := []api.Toleration{{
    		Key:      "foo",
    		Operator: api.TolerationOpEqual,
    		Value:    "bar",
    		Effect:   api.TaintEffectPreferNoSchedule,
    	}}
    	cases := map[string]struct {
    		old    batch.Job
    		update func(*batch.Job)
    		opts   JobValidationOptions
    		err    *field.Error
    	}{
    		"mutable fields": {
    			old: batch.Job{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    	}
    	obj, err := runtime.Decode(decoder, body)
    	return obj, string(body), err
    }
    
    func TestNotFound(t *testing.T) {
    	type T struct {
    		Method string
    		Path   string
    		Status int
    	}
    	cases := map[string]T{
    		// Positive checks to make sure everything is wired correctly
    		"groupless GET root":       {"GET", "/" + grouplessPrefix + "/" + grouplessGroupVersion.Version + "/simpleroots", http.StatusOK},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

    # quantized results
    @test_util.run_all_in_graph_and_eager_modes
    class QuantizationOptionsTest(quantize_model_test_base.QuantizedModelTest):
      """Test cases regarding the use of QuantizationOptions proto.
    
      Run all tests cases in both the graph mode (default in TF1) and the eager mode
      (default in TF2) to ensure support for when TF2 is disabled.
      """
    
      class SimpleModel(module.Module):
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				"!self.listMap.all(m, m.v2 != 'z')",
    			},
    			errors: map[string]string{
    				// test comprehensions where the field used in predicates is unset on all but one of the elements: (error cases)
    				// - without has checks:
    
    				// if all() predicate evaluates to false or error for all elements, any error encountered is raised
    				"self.listMap.all(m, m.v2 == 'z')": "no such key: v2",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  9. doc/go1.17_spec.html

    "Switch" statements provide multi-way execution.
    An expression or type is compared to the "cases"
    inside the "switch" to determine which branch
    to execute.
    </p>
    
    <pre class="ebnf">
    SwitchStmt = ExprSwitchStmt | TypeSwitchStmt .
    </pre>
    
    <p>
    There are two forms: expression switches and type switches.
    In an expression switch, the cases contain expressions that are compared
    against the value of the switch expression.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/load/pkg.go

    		return "no non-test Go files in " + e.Package.Dir
    	}
    	return "no Go files in " + e.Package.Dir
    }
    
    // setLoadPackageDataError presents an error found when loading package data
    // as a *PackageError. It has special cases for some common errors to improve
    // messages shown to users and reduce redundancy.
    //
    // setLoadPackageDataError returns true if it's safe to load information about
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top