Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFromInt32 (2.04 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

    	fuzz "github.com/google/gofuzz"
    )
    
    func TestFromInt(t *testing.T) {
    	i := FromInt(93)
    	if i.Type != Int || i.IntVal != 93 {
    		t.Errorf("Expected IntVal=93, got %+v", i)
    	}
    }
    
    func TestFromInt32(t *testing.T) {
    	i := FromInt32(93)
    	if i.Type != Int || i.IntVal != 93 {
    		t.Errorf("Expected IntVal=93, got %+v", i)
    	}
    }
    
    func TestFromString(t *testing.T) {
    	i := FromString("76")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top