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

Function NewPopulatedNinEmbeddedStruct

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

Source from the content-addressed store, hash-verified

27576}
27577
27578func NewPopulatedNinEmbeddedStruct(r randyThetest, easy bool) *NinEmbeddedStruct {
27579 this := &NinEmbeddedStruct{}
27580 if r.Intn(5) != 0 {
27581 this.NidOptNative = NewPopulatedNidOptNative(r, easy)
27582 }
27583 if r.Intn(5) != 0 {
27584 this.Field200 = NewPopulatedNidOptNative(r, easy)
27585 }
27586 if r.Intn(5) != 0 {
27587 v112 := bool(bool(r.Intn(2) == 0))
27588 this.Field210 = &v112
27589 }
27590 if !easy && r.Intn(10) != 0 {
27591 this.XXX_unrecognized = randUnrecognizedThetest(r, 211)
27592 }
27593 return this
27594}
27595
27596func NewPopulatedNidNestedStruct(r randyThetest, easy bool) *NidNestedStruct {
27597 this := &NidNestedStruct{}

Calls 3

NewPopulatedNidOptNativeFunction · 0.70
randUnrecognizedThetestFunction · 0.70
IntnMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…