Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for condition1 (0.2 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractSpockTaskTest.groovy

            final MutableBoolean condition1 = new MutableBoolean(true)
            final MutableBoolean condition2 = new MutableBoolean(true)
    
            DefaultTask task = getTask()
            task.onlyIf {
                condition1.get()
            }
            task.onlyIf {
                condition2.get()
            }
    
            expect:
            task.getOnlyIf().isSatisfiedBy(task)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 23 14:27:55 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractTaskTest.groovy

            given:
            final MutableBoolean condition1 = new MutableBoolean(true)
            final MutableBoolean condition2 = new MutableBoolean(true)
    
            def task = getTask()
            task.onlyIf(new Spec<Task>() {
                boolean isSatisfiedBy(Task element) {
                    return condition1.get()
                }
            })
    
            task.onlyIf("Condition 2 was not met", new Spec<Task>() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/EndpointPair.java

          // boolean condition1 = nodeU().equals(other.nodeU()) && nodeV().equals(other.nodeV());
          // boolean condition2 = nodeU().equals(other.nodeV()) && nodeV().equals(other.nodeU());
          // return condition1 || condition2;
          if (nodeU().equals(other.nodeU())) { // check condition1
            // Here's the tricky bit. We don't have to explicitly check for condition2 in this case.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskOnlyIfReasonIntegrationTest.groovy

            "onlyIf('condition1') { false }"                                                    | "condition1"
            "onlyIf('...') { true }\nonlyIf('condition2') { false }"                            | "condition2"
            "onlyIf('...') { false }\nsetOnlyIf('condition3') { false }"                        | "condition3"
            "onlyIf { false }"                                                                  | "Task satisfies onlyIf closure"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 01 11:18:25 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/graph/EndpointPair.java

          // boolean condition1 = nodeU().equals(other.nodeU()) && nodeV().equals(other.nodeV());
          // boolean condition2 = nodeU().equals(other.nodeV()) && nodeV().equals(other.nodeU());
          // return condition1 || condition2;
          if (nodeU().equals(other.nodeU())) { // check condition1
            // Here's the tricky bit. We don't have to explicitly check for condition2 in this case.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  6. pkg/registry/core/pod/storage/storage_test.go

    				{
    					ConditionType: api.PodConditionType(condition1),
    				},
    				{
    					ConditionType: api.PodConditionType(condition2),
    				},
    			},
    		},
    		Status: api.PodStatus{
    			Conditions: []api.PodCondition{
    				{
    					Type:   api.PodConditionType(condition1),
    					Status: api.ConditionFalse,
    				},
    				{
    					Type:   api.PodConditionType(condition2),
    					Status: api.ConditionTrue,
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_conversion_test.go

    			HostPID:            true,
    			Subdomain:          "hostname.subdomain.namespace.svc.domain",
    		},
    		Status: testapigroupv1.CarpStatus{
    			Phase: "phase",
    			Conditions: []testapigroupv1.CarpCondition{
    				{
    					Type:               "condition1",
    					Status:             "true",
    					LastProbeTime:      t,
    					LastTransitionTime: t,
    					Reason:             "reason",
    					Message:            "message",
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 07 15:19:26 UTC 2020
    - 16.4K bytes
    - Viewed (0)
  8. pkg/printers/internalversion/printers_test.go

    		if !reflect.DeepEqual(test.expect, rows) {
    			t.Errorf("%d mismatch: %s", i, cmp.Diff(test.expect, rows))
    		}
    	}
    }
    
    func TestPrintPodwide(t *testing.T) {
    	condition1 := "condition1"
    	condition2 := "condition2"
    	condition3 := "condition3"
    	tests := []struct {
    		pod    api.Pod
    		expect []metav1.TableRow
    	}{
    		{
    			// Test when the NodeName and PodIP are not none
    			api.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/gateway/conditions.go

    		cond := conditions[k]
    		setter := kstatus.UpdateConditionIfChanged
    		if cond.setOnce != "" {
    			setter = func(conditions []metav1.Condition, condition metav1.Condition) []metav1.Condition {
    				return kstatus.CreateCondition(conditions, condition, cond.setOnce)
    			}
    		}
    		// A condition can be "negative polarity" (ex: ListenerInvalid) or "positive polarity" (ex:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 13:05:41 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/meta/conditions.go

    		}
    	}
    
    	removed = len(*conditions) != len(newConditions)
    	*conditions = newConditions
    
    	return removed
    }
    
    // FindStatusCondition finds the conditionType in conditions.
    func FindStatusCondition(conditions []metav1.Condition, conditionType string) *metav1.Condition {
    	for i := range conditions {
    		if conditions[i].Type == conditionType {
    			return &conditions[i]
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 22 01:13:33 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top