• Home
  • Raw
  • Download

Lines Matching refs:testpb

16 	testpb "google.golang.org/protobuf/internal/testprotos/test"  packageName
21 identicalPtrPb := &testpb.TestAllTypes{MapStringString: map[string]string{"a": "b", "c": "d"}}
24 *testpb.TestAllTypes
37 x: (*testpb.TestAllTypes)(nil),
41 x: (*testpb.TestAllTypes)(nil),
42 y: (*testpb.TestAllTypes)(nil),
45 x: new(testpb.TestAllTypes),
46 y: (*testpb.TestAllTypes)(nil),
49 x: new(testpb.TestAllTypes),
50 y: new(testpb.TestAllTypes),
53 x: (*testpb.TestAllTypes)(nil),
54 y: (*testpb.TestAllExtensions)(nil),
57 x: (*testpb.TestAllTypes)(nil),
58 y: new(testpb.TestAllExtensions),
61 x: new(testpb.TestAllTypes),
62 y: new(testpb.TestAllExtensions),
96 x: &testpb.TestAllTypes{OptionalInt32: proto.Int32(1)},
97 y: &testpb.TestAllTypes{OptionalInt32: proto.Int32(2)},
99 x: &testpb.TestAllTypes{OptionalInt64: proto.Int64(1)},
100 y: &testpb.TestAllTypes{OptionalInt64: proto.Int64(2)},
102 x: &testpb.TestAllTypes{OptionalUint32: proto.Uint32(1)},
103 y: &testpb.TestAllTypes{OptionalUint32: proto.Uint32(2)},
105 x: &testpb.TestAllTypes{OptionalUint64: proto.Uint64(1)},
106 y: &testpb.TestAllTypes{OptionalUint64: proto.Uint64(2)},
108 x: &testpb.TestAllTypes{OptionalSint32: proto.Int32(1)},
109 y: &testpb.TestAllTypes{OptionalSint32: proto.Int32(2)},
111 x: &testpb.TestAllTypes{OptionalSint64: proto.Int64(1)},
112 y: &testpb.TestAllTypes{OptionalSint64: proto.Int64(2)},
114 x: &testpb.TestAllTypes{OptionalFixed32: proto.Uint32(1)},
115 y: &testpb.TestAllTypes{OptionalFixed32: proto.Uint32(2)},
117 x: &testpb.TestAllTypes{OptionalFixed64: proto.Uint64(1)},
118 y: &testpb.TestAllTypes{OptionalFixed64: proto.Uint64(2)},
120 x: &testpb.TestAllTypes{OptionalSfixed32: proto.Int32(1)},
121 y: &testpb.TestAllTypes{OptionalSfixed32: proto.Int32(2)},
123 x: &testpb.TestAllTypes{OptionalSfixed64: proto.Int64(1)},
124 y: &testpb.TestAllTypes{OptionalSfixed64: proto.Int64(2)},
126 x: &testpb.TestAllTypes{OptionalFloat: proto.Float32(1)},
127 y: &testpb.TestAllTypes{OptionalFloat: proto.Float32(2)},
129 x: &testpb.TestAllTypes{OptionalDouble: proto.Float64(1)},
130 y: &testpb.TestAllTypes{OptionalDouble: proto.Float64(2)},
132 x: &testpb.TestAllTypes{OptionalFloat: proto.Float32(float32(math.NaN()))},
133 y: &testpb.TestAllTypes{OptionalFloat: proto.Float32(0)},
135 x: &testpb.TestAllTypes{OptionalDouble: proto.Float64(float64(math.NaN()))},
136 y: &testpb.TestAllTypes{OptionalDouble: proto.Float64(0)},
138 x: &testpb.TestAllTypes{OptionalBool: proto.Bool(true)},
139 y: &testpb.TestAllTypes{OptionalBool: proto.Bool(false)},
141 x: &testpb.TestAllTypes{OptionalString: proto.String("a")},
142 y: &testpb.TestAllTypes{OptionalString: proto.String("b")},
144 x: &testpb.TestAllTypes{OptionalBytes: []byte("a")},
145 y: &testpb.TestAllTypes{OptionalBytes: []byte("b")},
147 x: &testpb.TestAllTypes{OptionalNestedEnum: testpb.TestAllTypes_FOO.Enum()},
148 y: &testpb.TestAllTypes{OptionalNestedEnum: testpb.TestAllTypes_BAR.Enum()},
150 x: &testpb.TestAllTypes{OptionalInt32: proto.Int32(2)},
151 y: &testpb.TestAllTypes{OptionalInt32: proto.Int32(2)},
154 x: &testpb.TestAllTypes{OptionalInt64: proto.Int64(2)},
155 y: &testpb.TestAllTypes{OptionalInt64: proto.Int64(2)},
158 x: &testpb.TestAllTypes{OptionalUint32: proto.Uint32(2)},
159 y: &testpb.TestAllTypes{OptionalUint32: proto.Uint32(2)},
162 x: &testpb.TestAllTypes{OptionalUint64: proto.Uint64(2)},
163 y: &testpb.TestAllTypes{OptionalUint64: proto.Uint64(2)},
166 x: &testpb.TestAllTypes{OptionalSint32: proto.Int32(2)},
167 y: &testpb.TestAllTypes{OptionalSint32: proto.Int32(2)},
170 x: &testpb.TestAllTypes{OptionalSint64: proto.Int64(2)},
171 y: &testpb.TestAllTypes{OptionalSint64: proto.Int64(2)},
174 x: &testpb.TestAllTypes{OptionalFixed32: proto.Uint32(2)},
175 y: &testpb.TestAllTypes{OptionalFixed32: proto.Uint32(2)},
178 x: &testpb.TestAllTypes{OptionalFixed64: proto.Uint64(2)},
179 y: &testpb.TestAllTypes{OptionalFixed64: proto.Uint64(2)},
182 x: &testpb.TestAllTypes{OptionalSfixed32: proto.Int32(2)},
183 y: &testpb.TestAllTypes{OptionalSfixed32: proto.Int32(2)},
186 x: &testpb.TestAllTypes{OptionalSfixed64: proto.Int64(2)},
187 y: &testpb.TestAllTypes{OptionalSfixed64: proto.Int64(2)},
190 x: &testpb.TestAllTypes{OptionalFloat: proto.Float32(2)},
191 y: &testpb.TestAllTypes{OptionalFloat: proto.Float32(2)},
194 x: &testpb.TestAllTypes{OptionalDouble: proto.Float64(2)},
195 y: &testpb.TestAllTypes{OptionalDouble: proto.Float64(2)},
198 x: &testpb.TestAllTypes{OptionalFloat: proto.Float32(float32(math.NaN()))},
199 y: &testpb.TestAllTypes{OptionalFloat: proto.Float32(float32(math.NaN()))},
202 x: &testpb.TestAllTypes{OptionalDouble: proto.Float64(float64(math.NaN()))},
203 y: &testpb.TestAllTypes{OptionalDouble: proto.Float64(float64(math.NaN()))},
206 x: &testpb.TestAllTypes{OptionalBool: proto.Bool(true)},
207 y: &testpb.TestAllTypes{OptionalBool: proto.Bool(true)},
210 x: &testpb.TestAllTypes{OptionalString: proto.String("abc")},
211 y: &testpb.TestAllTypes{OptionalString: proto.String("abc")},
214 x: &testpb.TestAllTypes{OptionalBytes: []byte("abc")},
215 y: &testpb.TestAllTypes{OptionalBytes: []byte("abc")},
218 x: &testpb.TestAllTypes{OptionalNestedEnum: testpb.TestAllTypes_FOO.Enum()},
219 y: &testpb.TestAllTypes{OptionalNestedEnum: testpb.TestAllTypes_FOO.Enum()},
225 x: &testpb.TestAllTypes{},
226 y: &testpb.TestAllTypes{OptionalInt32: proto.Int32(0)},
228 x: &testpb.TestAllTypes{},
229 y: &testpb.TestAllTypes{OptionalInt64: proto.Int64(0)},
231 x: &testpb.TestAllTypes{},
232 y: &testpb.TestAllTypes{OptionalUint32: proto.Uint32(0)},
234 x: &testpb.TestAllTypes{},
235 y: &testpb.TestAllTypes{OptionalUint64: proto.Uint64(0)},
237 x: &testpb.TestAllTypes{},
238 y: &testpb.TestAllTypes{OptionalSint32: proto.Int32(0)},
240 x: &testpb.TestAllTypes{},
241 y: &testpb.TestAllTypes{OptionalSint64: proto.Int64(0)},
243 x: &testpb.TestAllTypes{},
244 y: &testpb.TestAllTypes{OptionalFixed32: proto.Uint32(0)},
246 x: &testpb.TestAllTypes{},
247 y: &testpb.TestAllTypes{OptionalFixed64: proto.Uint64(0)},
249 x: &testpb.TestAllTypes{},
250 y: &testpb.TestAllTypes{OptionalSfixed32: proto.Int32(0)},
252 x: &testpb.TestAllTypes{},
253 y: &testpb.TestAllTypes{OptionalSfixed64: proto.Int64(0)},
255 x: &testpb.TestAllTypes{},
256 y: &testpb.TestAllTypes{OptionalFloat: proto.Float32(0)},
258 x: &testpb.TestAllTypes{},
259 y: &testpb.TestAllTypes{OptionalDouble: proto.Float64(0)},
261 x: &testpb.TestAllTypes{},
262 y: &testpb.TestAllTypes{OptionalBool: proto.Bool(false)},
264 x: &testpb.TestAllTypes{},
265 y: &testpb.TestAllTypes{OptionalString: proto.String("")},
267 x: &testpb.TestAllTypes{},
268 y: &testpb.TestAllTypes{OptionalBytes: []byte{}},
270 x: &testpb.TestAllTypes{},
271 y: &testpb.TestAllTypes{OptionalNestedEnum: testpb.TestAllTypes_FOO.Enum()},
327 x: &testpb.TestAllTypes{DefaultInt32: proto.Int32(81)},
328 y: &testpb.TestAllTypes{},
330 x: &testpb.TestAllTypes{},
331 y: &testpb.TestAllTypes{DefaultInt32: proto.Int32(81)},
333 x: &testpb.TestAllTypes{},
334 y: &testpb.TestAllTypes{DefaultInt64: proto.Int64(82)},
336 x: &testpb.TestAllTypes{},
337 y: &testpb.TestAllTypes{DefaultUint32: proto.Uint32(83)},
339 x: &testpb.TestAllTypes{},
340 y: &testpb.TestAllTypes{DefaultUint64: proto.Uint64(84)},
342 x: &testpb.TestAllTypes{},
343 y: &testpb.TestAllTypes{DefaultSint32: proto.Int32(-85)},
345 x: &testpb.TestAllTypes{},
346 y: &testpb.TestAllTypes{DefaultSint64: proto.Int64(86)},
348 x: &testpb.TestAllTypes{},
349 y: &testpb.TestAllTypes{DefaultFixed32: proto.Uint32(87)},
351 x: &testpb.TestAllTypes{},
352 y: &testpb.TestAllTypes{DefaultFixed64: proto.Uint64(88)},
354 x: &testpb.TestAllTypes{},
355 y: &testpb.TestAllTypes{DefaultSfixed32: proto.Int32(89)},
357 x: &testpb.TestAllTypes{},
358 y: &testpb.TestAllTypes{DefaultSfixed64: proto.Int64(-90)},
360 x: &testpb.TestAllTypes{},
361 y: &testpb.TestAllTypes{DefaultFloat: proto.Float32(91.5)},
363 x: &testpb.TestAllTypes{},
364 y: &testpb.TestAllTypes{DefaultDouble: proto.Float64(92e3)},
366 x: &testpb.TestAllTypes{},
367 y: &testpb.TestAllTypes{DefaultBool: proto.Bool(true)},
369 x: &testpb.TestAllTypes{},
370 y: &testpb.TestAllTypes{DefaultString: proto.String("hello")},
372 x: &testpb.TestAllTypes{},
373 y: &testpb.TestAllTypes{DefaultBytes: []byte("world")},
375 x: &testpb.TestAllTypes{},
376 y: &testpb.TestAllTypes{DefaultNestedEnum: testpb.TestAllTypes_BAR.Enum()},
381 x: &testpb.TestAllTypes{Optionalgroup: &testpb.TestAllTypes_OptionalGroup{
384 y: &testpb.TestAllTypes{Optionalgroup: &testpb.TestAllTypes_OptionalGroup{
388 x: &testpb.TestAllTypes{},
389 y: &testpb.TestAllTypes{Optionalgroup: &testpb.TestAllTypes_OptionalGroup{}},
394 x: &testpb.TestAllTypes{OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{
397 y: &testpb.TestAllTypes{OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{
401 x: &testpb.TestAllTypes{},
402 y: &testpb.TestAllTypes{OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{}},
410 x: &testpb.TestAllTypes{RepeatedInt32: []int32{1}},
411 y: &testpb.TestAllTypes{RepeatedInt32: []int32{1, 2}},
413 x: &testpb.TestAllTypes{RepeatedInt32: []int32{1, 2}},
414 y: &testpb.TestAllTypes{RepeatedInt32: []int32{1, 3}},
416 x: &testpb.TestAllTypes{RepeatedInt64: []int64{1, 2}},
417 y: &testpb.TestAllTypes{RepeatedInt64: []int64{1, 3}},
419 x: &testpb.TestAllTypes{RepeatedUint32: []uint32{1, 2}},
420 y: &testpb.TestAllTypes{RepeatedUint32: []uint32{1, 3}},
422 x: &testpb.TestAllTypes{RepeatedUint64: []uint64{1, 2}},
423 y: &testpb.TestAllTypes{RepeatedUint64: []uint64{1, 3}},
425 x: &testpb.TestAllTypes{RepeatedSint32: []int32{1, 2}},
426 y: &testpb.TestAllTypes{RepeatedSint32: []int32{1, 3}},
428 x: &testpb.TestAllTypes{RepeatedSint64: []int64{1, 2}},
429 y: &testpb.TestAllTypes{RepeatedSint64: []int64{1, 3}},
431 x: &testpb.TestAllTypes{RepeatedFixed32: []uint32{1, 2}},
432 y: &testpb.TestAllTypes{RepeatedFixed32: []uint32{1, 3}},
434 x: &testpb.TestAllTypes{RepeatedFixed64: []uint64{1, 2}},
435 y: &testpb.TestAllTypes{RepeatedFixed64: []uint64{1, 3}},
437 x: &testpb.TestAllTypes{RepeatedSfixed32: []int32{1, 2}},
438 y: &testpb.TestAllTypes{RepeatedSfixed32: []int32{1, 3}},
440 x: &testpb.TestAllTypes{RepeatedSfixed64: []int64{1, 2}},
441 y: &testpb.TestAllTypes{RepeatedSfixed64: []int64{1, 3}},
443 x: &testpb.TestAllTypes{RepeatedFloat: []float32{1, 2}},
444 y: &testpb.TestAllTypes{RepeatedFloat: []float32{1, 3}},
446 x: &testpb.TestAllTypes{RepeatedDouble: []float64{1, 2}},
447 y: &testpb.TestAllTypes{RepeatedDouble: []float64{1, 3}},
449 x: &testpb.TestAllTypes{RepeatedBool: []bool{true, false}},
450 y: &testpb.TestAllTypes{RepeatedBool: []bool{true, true}},
452 x: &testpb.TestAllTypes{RepeatedString: []string{"a", "b"}},
453 y: &testpb.TestAllTypes{RepeatedString: []string{"a", "c"}},
455 x: &testpb.TestAllTypes{RepeatedBytes: [][]byte{[]byte("a"), []byte("b")}},
456 y: &testpb.TestAllTypes{RepeatedBytes: [][]byte{[]byte("a"), []byte("c")}},
458 …x: &testpb.TestAllTypes{RepeatedNestedEnum: []testpb.TestAllTypes_NestedEnum{testpb.TestAllTypes_F…
459 …y: &testpb.TestAllTypes{RepeatedNestedEnum: []testpb.TestAllTypes_NestedEnum{testpb.TestAllTypes_B…
461 x: &testpb.TestAllTypes{Repeatedgroup: []*testpb.TestAllTypes_RepeatedGroup{
465 y: &testpb.TestAllTypes{Repeatedgroup: []*testpb.TestAllTypes_RepeatedGroup{
470 x: &testpb.TestAllTypes{RepeatedNestedMessage: []*testpb.TestAllTypes_NestedMessage{
474 y: &testpb.TestAllTypes{RepeatedNestedMessage: []*testpb.TestAllTypes_NestedMessage{
482 x: &testpb.TestAllTypes{MapInt32Int32: map[int32]int32{1: 2}},
483 y: &testpb.TestAllTypes{MapInt32Int32: map[int32]int32{3: 4}},
485 x: &testpb.TestAllTypes{MapInt32Int32: map[int32]int32{1: 2}},
486 y: &testpb.TestAllTypes{MapInt32Int32: map[int32]int32{1: 2, 3: 4}},
488 x: &testpb.TestAllTypes{MapInt32Int32: map[int32]int32{1: 2, 3: 4}},
489 y: &testpb.TestAllTypes{MapInt32Int32: map[int32]int32{1: 2}},
494 x: &testpb.TestAllTypes{MapInt32Int32: map[int32]int32{1: 2, 3: 4}},
495 y: &testpb.TestAllTypes{MapInt32Int32: map[int32]int32{1: 2, 3: 5}},
497 x: &testpb.TestAllTypes{MapInt64Int64: map[int64]int64{1: 2, 3: 4}},
498 y: &testpb.TestAllTypes{MapInt64Int64: map[int64]int64{1: 2, 3: 5}},
500 x: &testpb.TestAllTypes{MapUint32Uint32: map[uint32]uint32{1: 2, 3: 4}},
501 y: &testpb.TestAllTypes{MapUint32Uint32: map[uint32]uint32{1: 2, 3: 5}},
503 x: &testpb.TestAllTypes{MapUint64Uint64: map[uint64]uint64{1: 2, 3: 4}},
504 y: &testpb.TestAllTypes{MapUint64Uint64: map[uint64]uint64{1: 2, 3: 5}},
506 x: &testpb.TestAllTypes{MapSint32Sint32: map[int32]int32{1: 2, 3: 4}},
507 y: &testpb.TestAllTypes{MapSint32Sint32: map[int32]int32{1: 2, 3: 5}},
509 x: &testpb.TestAllTypes{MapSint64Sint64: map[int64]int64{1: 2, 3: 4}},
510 y: &testpb.TestAllTypes{MapSint64Sint64: map[int64]int64{1: 2, 3: 5}},
512 x: &testpb.TestAllTypes{MapFixed32Fixed32: map[uint32]uint32{1: 2, 3: 4}},
513 y: &testpb.TestAllTypes{MapFixed32Fixed32: map[uint32]uint32{1: 2, 3: 5}},
515 x: &testpb.TestAllTypes{MapFixed64Fixed64: map[uint64]uint64{1: 2, 3: 4}},
516 y: &testpb.TestAllTypes{MapFixed64Fixed64: map[uint64]uint64{1: 2, 3: 5}},
518 x: &testpb.TestAllTypes{MapSfixed32Sfixed32: map[int32]int32{1: 2, 3: 4}},
519 y: &testpb.TestAllTypes{MapSfixed32Sfixed32: map[int32]int32{1: 2, 3: 5}},
521 x: &testpb.TestAllTypes{MapSfixed64Sfixed64: map[int64]int64{1: 2, 3: 4}},
522 y: &testpb.TestAllTypes{MapSfixed64Sfixed64: map[int64]int64{1: 2, 3: 5}},
524 x: &testpb.TestAllTypes{MapInt32Float: map[int32]float32{1: 2, 3: 4}},
525 y: &testpb.TestAllTypes{MapInt32Float: map[int32]float32{1: 2, 3: 5}},
527 x: &testpb.TestAllTypes{MapInt32Double: map[int32]float64{1: 2, 3: 4}},
528 y: &testpb.TestAllTypes{MapInt32Double: map[int32]float64{1: 2, 3: 5}},
530 x: &testpb.TestAllTypes{MapBoolBool: map[bool]bool{true: false, false: true}},
531 y: &testpb.TestAllTypes{MapBoolBool: map[bool]bool{true: false, false: false}},
533 x: &testpb.TestAllTypes{MapStringString: map[string]string{"a": "b", "c": "d"}},
534 y: &testpb.TestAllTypes{MapStringString: map[string]string{"a": "b", "c": "e"}},
536 x: &testpb.TestAllTypes{MapStringBytes: map[string][]byte{"a": []byte("b"), "c": []byte("d")}},
537 y: &testpb.TestAllTypes{MapStringBytes: map[string][]byte{"a": []byte("b"), "c": []byte("e")}},
539 x: &testpb.TestAllTypes{MapStringNestedMessage: map[string]*testpb.TestAllTypes_NestedMessage{
543 y: &testpb.TestAllTypes{MapStringNestedMessage: map[string]*testpb.TestAllTypes_NestedMessage{
548 x: &testpb.TestAllTypes{MapStringNestedEnum: map[string]testpb.TestAllTypes_NestedEnum{
549 "a": testpb.TestAllTypes_FOO,
550 "b": testpb.TestAllTypes_BAR,
552 y: &testpb.TestAllTypes{MapStringNestedEnum: map[string]testpb.TestAllTypes_NestedEnum{
553 "a": testpb.TestAllTypes_FOO,
554 "b": testpb.TestAllTypes_BAZ,
560 x: build(&testpb.TestAllExtensions{},
561 extend(testpb.E_OptionalInt32, int32(1)),
563 y: build(&testpb.TestAllExtensions{},
564 extend(testpb.E_OptionalInt32, int32(2)),
567 x: &testpb.TestAllExtensions{},
568 y: build(&testpb.TestAllExtensions{},
569 extend(testpb.E_OptionalInt32, int32(2)),
575 x: build(&testpb.TestAllTypes{}, unknown(protopack.Message{
578 y: build(&testpb.TestAllTypes{}, unknown(protopack.Message{
582 x: build(&testpb.TestAllTypes{}, unknown(protopack.Message{
585 y: &testpb.TestAllTypes{},
603 x := &testpb.ForeignMessage{}
604 y := &testpb.ForeignMessage{}
613 x := &testpb.ForeignMessage{}
622 x := &testpb.TestAllTypes{}
623 y := &testpb.TestAllTypes{}
631 func makeNested(depth int) *testpb.TestAllTypes {
635 return &testpb.TestAllTypes{
636 OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{