- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for IntVal (0.42 sec)
-
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) -
src/fmt/scan_test.go
{"21\n", &intVal, 21}, {"2_1\n", &intVal, 21}, {"0\n", &intVal, 0}, {"000\n", &intVal, 0}, {"0x10\n", &intVal, 0x10}, {"0x_1_0\n", &intVal, 0x10}, {"-0x10\n", &intVal, -0x10}, {"0377\n", &intVal, 0377}, {"0_3_7_7\n", &intVal, 0377}, {"0o377\n", &intVal, 0377}, {"0o_3_7_7\n", &intVal, 0377}, {"-0377\n", &intVal, -0377}, {"-0o377\n", &intVal, -0377},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 20:25:13 UTC 2023 - 39.3K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/value_types_json.go
if err != nil { return err } this.IntVal = &wrapperspb.Int32Value{Value: s} return nil } func (this *IntOrString) MarshalJSONPB(_ *github_com_golang_protobuf_jsonpb.Marshaler) ([]byte, error) { return this.MarshalJSON() } func (this *IntOrString) MarshalJSON() ([]byte, error) { if this.IntVal != nil { return json.Marshal(this.IntVal.GetValue()) } return json.Marshal(this.StrVal.GetValue()) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go
// // +protobuf=true // +protobuf.options.(gogoproto.goproto_stringer)=false // +k8s:openapi-gen=true type IntOrString struct { Type Type `protobuf:"varint,1,opt,name=type,casttype=Type"` IntVal int32 `protobuf:"varint,2,opt,name=intVal"` StrVal string `protobuf:"bytes,3,opt,name=strVal"` } // Type represents the stored type of IntOrString. type Type int64 const ( Int Type = iota // The IntOrString holds an int.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 7.8K bytes - Viewed (0) -
test/abi/idata.go
func newFloat() *big.Float { return new(big.Float).SetPrec(prec) } //go:noinline //go:registerparams func itor(x intVal) ratVal { return ratVal{nil} } //go:noinline //go:registerparams func itof(x intVal) floatVal { return floatVal{nil} } func rtof(x ratVal) floatVal { return floatVal{newFloat().SetRat(x.val)} } type Value interface { String() string }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 05 20:11:08 UTC 2021 - 2.1K bytes - Viewed (0) -
src/go/constant/value.go
func (ratVal) implementsValue() {} func (intVal) implementsValue() {} func (floatVal) implementsValue() {} func (complexVal) implementsValue() {} func newInt() *big.Int { return new(big.Int) } func newRat() *big.Rat { return new(big.Rat) } func newFloat() *big.Float { return new(big.Float).SetPrec(prec) } func i64toi(x int64Val) intVal { return intVal{newInt().SetInt64(int64(x))} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
operator/pkg/translate/strategic_port_merge_test.go
Port: 443, TargetPort: intstr.IntOrString{IntVal: 8443}, } quicPort = &v1.ServicePort{ Name: "http3-quic", Protocol: v1.ProtocolUDP, Port: 443, TargetPort: intstr.IntOrString{IntVal: 8443}, } httpPort = &v1.ServicePort{ Name: "http-port", Protocol: v1.ProtocolTCP, Port: 80, TargetPort: intstr.IntOrString{IntVal: 8080}, } httpNoProtoPort = &v1.ServicePort{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 21 03:06:37 UTC 2021 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/intstr/instr_fuzz.go
// Fuzz satisfies fuzz.Interface func (intstr *IntOrString) Fuzz(c fuzz.Continue) { if intstr == nil { return } if c.RandBool() { intstr.Type = Int c.Fuzz(&intstr.IntVal) intstr.StrVal = "" } else { intstr.Type = String intstr.IntVal = 0 c.Fuzz(&intstr.StrVal) } } // ensure IntOrString implements fuzz.Interface
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 1K bytes - Viewed (0) -
pkg/kube/apimirror/probe.go
) type IntOrString struct { Type Type IntVal int32 StrVal string } // UnmarshalJSON implements the json.Unmarshaller interface. func (intstr *IntOrString) UnmarshalJSON(value []byte) error { if value[0] == '"' { intstr.Type = String return json.Unmarshal(value, &intstr.StrVal) } intstr.Type = Int return json.Unmarshal(value, &intstr.IntVal) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 4.4K bytes - Viewed (0) -
pkg/apis/networking/v1beta1/conversion.go
return err } if len(in.ServiceName) > 0 || in.ServicePort.IntVal != 0 || in.ServicePort.StrVal != "" || in.ServicePort.Type == intstr.String { out.Service = &networking.IngressServiceBackend{} out.Service.Name = in.ServiceName out.Service.Port.Name = in.ServicePort.StrVal out.Service.Port.Number = in.ServicePort.IntVal } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 2.8K bytes - Viewed (0)