MCPcopy
hub / github.com/gogo/protobuf / NewPopulatedNidOptStruct

Function NewPopulatedNidOptStruct

test/combos/both/thetest.pb.go:27288–27320  ·  view source on GitHub ↗
(r randyThetest, easy bool)

Source from the content-addressed store, hash-verified

27286}
27287
27288func NewPopulatedNidOptStruct(r randyThetest, easy bool) *NidOptStruct {
27289 this := &NidOptStruct{}
27290 this.Field1 = float64(r.Float64())
27291 if r.Intn(2) == 0 {
27292 this.Field1 *= -1
27293 }
27294 this.Field2 = float32(r.Float32())
27295 if r.Intn(2) == 0 {
27296 this.Field2 *= -1
27297 }
27298 v75 := NewPopulatedNidOptNative(r, easy)
27299 this.Field3 = *v75
27300 v76 := NewPopulatedNinOptNative(r, easy)
27301 this.Field4 = *v76
27302 this.Field6 = uint64(uint64(r.Uint32()))
27303 this.Field7 = int32(r.Int31())
27304 if r.Intn(2) == 0 {
27305 this.Field7 *= -1
27306 }
27307 v77 := NewPopulatedNidOptNative(r, easy)
27308 this.Field8 = *v77
27309 this.Field13 = bool(bool(r.Intn(2) == 0))
27310 this.Field14 = string(randStringThetest(r))
27311 v78 := r.Intn(100)
27312 this.Field15 = make([]byte, v78)
27313 for i := 0; i < v78; i++ {
27314 this.Field15[i] = byte(r.Intn(256))
27315 }
27316 if !easy && r.Intn(10) != 0 {
27317 this.XXX_unrecognized = randUnrecognizedThetest(r, 16)
27318 }
27319 return this
27320}
27321
27322func NewPopulatedNinOptStruct(r randyThetest, easy bool) *NinOptStruct {
27323 this := &NinOptStruct{}

Calls 9

NewPopulatedNidOptNativeFunction · 0.70
NewPopulatedNinOptNativeFunction · 0.70
randStringThetestFunction · 0.70
randUnrecognizedThetestFunction · 0.70
Float64Method · 0.65
IntnMethod · 0.65
Float32Method · 0.65
Uint32Method · 0.65
Int31Method · 0.65

Tested by 14

TestNidOptStructProtoFunction · 0.56
TestNidOptStructJSONFunction · 0.56
TestNidOptStructCompareFunction · 0.56
TestNidOptStructFaceFunction · 0.56
TestNidOptStructGoStringFunction · 0.56
TestNidOptStructSizeFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…