Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    	for _, val := range goodValues {
    		if msgs := IsValidPortName(val); len(msgs) != 0 {
    			t.Errorf("expected true for %q: %v", val, msgs)
    		}
    	}
    
    	badValues := []string{"longerthan15characters", "", strings.Repeat("a", 16), "12345", "1-2-3-4", "-begin", "end-", "two--hyphens", "whois++"}
    	for _, val := range badValues {
    		if msgs := IsValidPortName(val); len(msgs) == 0 {
    			t.Errorf("expected false for %q", val)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 04:51:54 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top