Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestNotSupported (0.15 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors_test.go

    		t.Errorf("should not filter")
    	}
    	if len(list.Filter(NewErrorTypeMatcher(ErrorTypeInvalid))) != 1 {
    		t.Errorf("should filter")
    	}
    }
    
    func TestNotSupported(t *testing.T) {
    	notSupported := NotSupported(NewPath("f"), "v", []string{"a", "b", "c"})
    	expected := `Unsupported value: "v": supported values: "a", "b", "c"`
    	if notSupported.ErrorBody() != expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top