Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testTaint2 (0.19 sec)

  1. pkg/util/taints/taints_test.go

    				return false
    			},
    			expectedTaints: []v1.Taint{testTaint1},
    		},
    		{
    			name:           "Filter out everything",
    			fn:             func(t *v1.Taint) bool { return true },
    			expectedTaints: []v1.Taint{testTaint1, testTaint2, testTaint3},
    		},
    	}
    	for _, tc := range testcases {
    		t.Run(tc.name, func(t *testing.T) {
    			taintsAfterFilter := TaintSetFilter(testTaints, tc.fn)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 09:23:35 UTC 2022
    - 22.6K bytes
    - Viewed (0)
  2. pkg/controller/tainteviction/taint_eviction_test.go

    						Name:      "pod1",
    					},
    					Spec: corev1.PodSpec{
    						NodeName: "node1",
    						Tolerations: []corev1.Toleration{
    							{Key: "testTaint1", Value: "test1", Effect: corev1.TaintEffectNoExecute, TolerationSeconds: &[]int64{1}[0]},
    							{Key: "testTaint2", Value: "test2", Effect: corev1.TaintEffectNoExecute, TolerationSeconds: &[]int64{100}[0]},
    						},
    					},
    					Status: corev1.PodStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  3. test/range3.go

    		bad = true
    	}
    	if bad {
    		panic("testint1")
    	}
    }
    
    func testint2() {
    	bad := false
    	j := 0
    	for i := range 4 {
    		if i != j {
    			println("range var", i, "want", j)
    			bad = true
    		}
    		j++
    	}
    	if j != 4 {
    		println("wrong count ranging over 4:", j)
    		bad = true
    	}
    	if bad {
    		panic("testint2")
    	}
    }
    
    func testint3() {
    	bad := false
    	type MyInt int
    	j := MyInt(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 17:20:08 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top