Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRangePanic (0.27 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/rand/rand_test.go

    		}
    		for _, c := range s {
    			if !strings.ContainsRune(valid, c) {
    				t.Errorf("expected valid characters, got %v", c)
    			}
    		}
    	}
    }
    
    // Confirm that panic occurs on invalid input.
    func TestRangePanic(t *testing.T) {
    	defer func() {
    		if err := recover(); err == nil {
    			t.Errorf("Panic didn't occur!")
    		}
    	}()
    	// Should result in an error...
    	Intn(0)
    }
    
    func TestIntn(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 07 13:45:36 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top