Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. staging/src/k8s.io/apimachinery/pkg/fields/selector_test.go

    	}
    }
    
    func expectNoMatchDirect(t *testing.T, selector, ls Set) {
    	if SelectorFromSet(selector).Matches(ls) {
    		t.Errorf("Wanted '%s' to not match '%s', but it did.", selector, ls)
    	}
    }
    
    func TestSetMatches(t *testing.T) {
    	labelset := Set{
    		"foo": "bar",
    		"baz": "blah",
    	}
    	expectMatchDirect(t, Set{}, labelset)
    	expectMatchDirect(t, Set{"foo": "bar"}, labelset)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 27 08:00:38 UTC 2017
    - 11.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go

    	}
    }
    
    //nolint:staticcheck,unused //iccheck // U1000 currently commented out in TODO of TestSetMatches
    func expectNoMatchDirect(t *testing.T, selector, ls Set) {
    	if SelectorFromSet(selector).Matches(ls) {
    		t.Errorf("Wanted '%s' to not match '%s', but it did.", selector, ls)
    	}
    }
    
    func TestSetMatches(t *testing.T) {
    	labelset := Set{
    		"foo": "bar",
    		"baz": "blah",
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 29.9K bytes
    - Viewed (0)
Back to top