Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestRequiresExactMatch (0.26 sec)

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

    	}
    	if !(andTerm{andTerm{}}).Empty() {
    		t.Errorf("Nested andTerm should be empty")
    	}
    	if (andTerm{&hasTerm{"a", "b"}}).Empty() {
    		t.Errorf("Nested andTerm should not be empty")
    	}
    }
    
    func TestRequiresExactMatch(t *testing.T) {
    	testCases := map[string]struct {
    		S     Selector
    		Label string
    		Value string
    		Found bool
    	}{
    		"empty set":                 {Set{}.AsSelector(), "test", "", false},
    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

    		t.Run(tt.out, func(t *testing.T) {
    			if got := ValidatedSetSelector(tt.set).String(); tt.out != got {
    				t.Fatalf("expected %v, got %v", tt.out, got)
    			}
    		})
    	}
    }
    
    func TestRequiresExactMatch(t *testing.T) {
    	testCases := []struct {
    		name          string
    		sel           Selector
    		label         string
    		expectedFound bool
    		expectedValue string
    	}{
    		{
    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