- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestFromString (0.76 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go
} } 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") if i.Type != String || i.StrVal != "76" { t.Errorf("Expected StrVal=\"76\", got %+v", i) } } type IntOrStringHolder struct { IOrS IntOrString `json:"val"` }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 14.3K bytes - Viewed (0)