Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestMatchTaint (0.12 sec)

  1. pkg/apis/core/taint_test.go

    	for i, tc := range testCases {
    		if tc.expectedString != tc.taint.ToString() {
    			t.Errorf("[%v] expected taint %v converted to %s, got %s", i, tc.taint, tc.expectedString, tc.taint.ToString())
    		}
    	}
    }
    
    func TestMatchTaint(t *testing.T) {
    	testCases := []struct {
    		description  string
    		taint        *Taint
    		taintToMatch Taint
    		expectMatch  bool
    	}{
    		{
    			description: "two taints with the same key,value,effect should match",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/core/v1/taint_test.go

    	for i, tc := range testCases {
    		if tc.expectedString != tc.taint.ToString() {
    			t.Errorf("[%v] expected taint %v converted to %s, got %s", i, tc.taint, tc.expectedString, tc.taint.ToString())
    		}
    	}
    }
    
    func TestMatchTaint(t *testing.T) {
    	testCases := []struct {
    		description  string
    		taint        *Taint
    		taintToMatch Taint
    		expectMatch  bool
    	}{
    		{
    			description: "two taints with the same key,value,effect should match",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
Back to top