Home
last modified time | relevance | path

Searched refs:testpb (Results 1 – 25 of 28) sorted by relevance

12

/external/golang-protobuf/testing/protocmp/
Dutil_test.go20 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
31 allTypesDesc := (*testpb.TestAllTypes)(nil).ProtoReflect().Descriptor()
35 x: (*testpb.TestAllTypes)(nil),
36 y: (*testpb.TestAllTypes)(nil),
40 x: (*testpb.TestAllTypes)(nil),
41 y: (*testpb.TestAllExtensions)(nil),
45 x: (*testpb.TestAllTypes)(nil),
46 y: new(testpb.TestAllTypes),
50 x: (*testpb.TestAllTypes)(nil),
55 x: (*testpb.TestAllTypes)(nil),
[all …]
Dreflect_test.go14 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
21 optMsg := &testpb.TestAllTypes{
31 OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{A: proto.Int32(-32)},
32 OptionalNestedEnum: testpb.TestAllTypes_NEG.Enum(),
34 repMsg := &testpb.TestAllTypes{
44 …RepeatedNestedMessage: []*testpb.TestAllTypes_NestedMessage{{A: proto.Int32(-32)}, {A: proto.Int32…
45 …RepeatedNestedEnum: []testpb.TestAllTypes_NestedEnum{testpb.TestAllTypes_FOO, testpb.TestAllTyp…
47 mapMsg := &testpb.TestAllTypes{
57 …MapStringNestedMessage: map[string]*testpb.TestAllTypes_NestedMessage{"k1": {A: proto.Int32(-32)},…
58 …MapStringNestedEnum: map[string]testpb.TestAllTypes_NestedEnum{"k1": testpb.TestAllTypes_FOO, "…
[all …]
Dxform_test.go17 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
29 in: &testpb.TestAllTypes{
39 OptionalNestedEnum: testpb.TestAllTypes_NEG.Enum(),
40 OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{A: proto.Int32(5)},
43 messageTypeKey: messageMetaOf(&testpb.TestAllTypes{}),
53 "optional_nested_enum": enumOf(testpb.TestAllTypes_NEG),
54 …"optional_nested_message": Message{messageTypeKey: messageMetaOf(&testpb.TestAllTypes_NestedMessag…
57 in: &testpb.TestAllTypes{
67 RepeatedNestedEnum: []testpb.TestAllTypes_NestedEnum{
68 testpb.TestAllTypes_FOO,
[all …]
/external/golang-protobuf/proto/
Dequal_test.go16 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),
[all …]
Dextension_test.go21 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
34 message: &testpb.TestAllExtensions{},
35 ext: testpb.E_OptionalInt32,
40 message: &testpb.TestAllExtensions{},
41 ext: testpb.E_RepeatedString,
81 {testpb.E_OptionalBool, nil, false},
82 {testpb.E_OptionalBool, bool(true), true},
83 {testpb.E_OptionalBool, new(bool), false},
84 {testpb.E_OptionalInt32, nil, false},
85 {testpb.E_OptionalInt32, int32(0), true},
[all …]
Dmerge_test.go24 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
103 types: []proto.Message{&testpb.TestAllTypes{}, &test3pb.TestAllTypes{}},
109 types: []proto.Message{&testpb.TestAllTypes{}, &test3pb.TestAllTypes{}},
115 types: []proto.Message{&testpb.TestAllTypes{}, &test3pb.TestAllTypes{}},
121 types: []proto.Message{&testpb.TestAllTypes{}, &test3pb.TestAllTypes{}},
127 types: []proto.Message{&testpb.TestAllTypes{}, &test3pb.TestAllTypes{}},
133 types: []proto.Message{&testpb.TestAllTypes{}, &test3pb.TestAllTypes{}},
139 types: []proto.Message{&testpb.TestAllTypes{}, &test3pb.TestAllTypes{}},
145 types: []proto.Message{&testpb.TestAllTypes{}, &test3pb.TestAllTypes{}},
151 types: []proto.Message{&testpb.TestAllTypes{}, &test3pb.TestAllTypes{}},
[all …]
Dtestmessages_test.go18 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
37 &testpb.TestAllTypes{},
39 &testpb.TestAllExtensions{},
51 (*testpb.TestAllTypes)(nil),
53 (*testpb.TestAllExtensions)(nil),
102 protopack.Tag{21, protopack.VarintType}, protopack.Varint(int(testpb.TestAllTypes_BAR)),
186 }, &testpb.TestAllTypes{}, &testpb.TestAllExtensions{}),
200 }, &testpb.TestAllTypes{}, &testpb.TestAllExtensions{}),
317 protopack.Tag{51, protopack.VarintType}, protopack.Varint(int(testpb.TestAllTypes_FOO)),
318 protopack.Tag{51, protopack.VarintType}, protopack.Varint(int(testpb.TestAllTypes_BAR)),
[all …]
Dcheckinit_test.go16 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
27 m: &testpb.TestRequired{},
30 m: &testpb.TestRequiredForeign{
31 OptionalMessage: &testpb.TestRequired{},
35 m: &testpb.TestRequiredForeign{
36 RepeatedMessage: []*testpb.TestRequired{
43 m: &testpb.TestRequiredForeign{
44 MapMessage: map[int32]*testpb.TestRequired{
50 m: &testpb.TestWeak{},
55 m := &testpb.TestWeak{}
[all …]
Dweak_test.go15 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
35 m := &testpb.TestWeak{}
61 decodeTo: []proto.Message{(*testpb.TestWeak)(nil)},
78 types: []proto.Message{&testpb.TestWeak{}},
96 types: []proto.Message{&testpb.TestWeak{}},
105 m := new(testpb.TestWeak)
116 m := new(testpb.TestWeak)
Dreset_test.go12 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
16 m := &testpb.TestAllTypes{
22 OptionalForeignMessage: &testpb.ForeignMessage{},
23 OneofField: (*testpb.TestAllTypes_OneofUint32)(nil),
24 OneofOptional: (*testpb.TestAllTypes_OneofOptionalUint32)(nil),
Dencode_test.go23 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
149 m := &testpb.TestAllTypes{OneofField: (*testpb.TestAllTypes_OneofUint32)(nil)}
235 m := &testpb.TestAllTypes_NestedMessage{
236 Corecursive: &testpb.TestAllTypes{
259 for _, m := range []proto.Message{nil, (*testpb.TestAllTypes)(nil), &testpb.TestAllTypes{}} {
Ddecode_test.go19 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
113 m := &testpb.TestAllTypes{OneofField: (*testpb.TestAllTypes_OneofUint32)(nil)}
126 m := &testpb.TestAllTypes{}
Dnil_test.go13 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
21 nilMsg := (*testpb.TestAllExtensions)(nil)
22 extType := testpb.E_OptionalBool
/external/golang-protobuf/internal/impl/
Dextension_test.go16 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
30 xt: testpb.E_OptionalInt32,
34 xt: testpb.E_OptionalInt64,
38 xt: testpb.E_OptionalUint32,
42 xt: testpb.E_OptionalUint64,
46 xt: testpb.E_OptionalFloat,
50 xt: testpb.E_OptionalDouble,
54 xt: testpb.E_OptionalBool,
58 xt: testpb.E_OptionalString,
62 xt: testpb.E_OptionalBytes,
[all …]
Dlazy_test.go15 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
19 checkLazy := func(when string, m *testpb.TestAllExtensions, want bool) {
20 xd := testpb.E_OptionalNestedMessage.TypeDescriptor()
24 …e := proto.GetExtension(m, testpb.E_OptionalNestedMessage).(*testpb.TestAllExtensions_NestedMessag…
30 m1 := &testpb.TestAllExtensions{}
47 m := &testpb.TestAllExtensions{}
Denum_test.go12 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
16 et := testpb.ForeignEnum_FOREIGN_FOO.Type()
17 …if got, want := et.New(protoreflect.EnumNumber(testpb.ForeignEnum_FOREIGN_FOO)), protoreflect.Enum…
/external/golang-protobuf/internal/msgfmt/
Dformat_test.go20 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
34 optMsg := &testpb.TestAllTypes{
44 OptionalNestedEnum: testpb.TestAllTypes_NEG.Enum(),
45 OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{A: proto.Int32(5)},
47 repMsg := &testpb.TestAllTypes{
57 RepeatedNestedEnum: []testpb.TestAllTypes_NestedEnum{
58 testpb.TestAllTypes_FOO,
59 testpb.TestAllTypes_BAR,
61 RepeatedNestedMessage: []*testpb.TestAllTypes_NestedMessage{
66 mapMsg := &testpb.TestAllTypes{
[all …]
/external/golang-protobuf/internal/cmd/generate-corpus/
Dmain.go23 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
28 TestAllTypes: &testpb.TestAllTypes{
44 OptionalNestedEnum: testpb.TestAllTypes_BAR.Enum(),
45 Optionalgroup: &testpb.TestAllTypes_OptionalGroup{
48 OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{
50 Corecursive: &testpb.TestAllTypes{
69 RepeatedNestedEnum: []testpb.TestAllTypes_NestedEnum{
70 testpb.TestAllTypes_FOO,
71 testpb.TestAllTypes_BAR,
73 RepeatedNestedMessage: []*testpb.TestAllTypes_NestedMessage{
[all …]
/external/golang-protobuf/types/known/fieldmaskpb/
Dfield_mask_test.go14 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
38 inMessage: (*testpb.TestAllTypes)(nil),
43 inMessage: (*testpb.TestAllTypes)(nil),
47 inMessage: (*testpb.TestAllTypes)(nil),
52 inMessage: (*testpb.TestAllTypes)(nil),
205 message: (*testpb.TestAllTypes)(nil),
209 message: (*testpb.TestAllTypes)(nil),
213 message: (*testpb.TestAllTypes)(nil),
290 message: (*testpb.TestAllTypes)(nil),
304 message: (*testpb.TestAllTypes)(nil),
[all …]
/external/golang-protobuf/types/known/anypb/
Dany_test.go15 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
47 inTarget: (*testpb.TestAllTypes)(nil),
52 inTarget: (*testpb.TestAllTypes)(nil),
57 inTarget: (*testpb.TestAllTypes)(nil),
62 inTarget: (*testpb.TestAllTypes)(nil),
67 inTarget: (*testpb.TestAllTypes)(nil),
72 inTarget: (*testpb.TestAllTypes)(nil),
77 inTarget: (*testpb.TestAllTypes)(nil),
82 inTarget: (*testpb.TestAllTypes)(nil),
87 inTarget: (*testpb.TestAllTypes)(nil),
[all …]
/external/golang-protobuf/testing/prototest/
Dprototest_test.go19 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
27 (*testpb.TestAllTypes)(nil),
29 (*testpb.TestRequired)(nil),
31 (*testpb.TestAllExtensions)(nil),
36 ms = append(ms, (*testpb.TestWeak)(nil))
/external/golang-protobuf/types/dynamicpb/
Ddynamic_test.go16 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
22 (*testpb.TestAllTypes)(nil),
24 (*testpb.TestAllExtensions)(nil),
33 (*testpb.TestAllExtensions)(nil),
44 testpb.TestAllTypes_FOO,
/external/golang-protobuf/internal/benchmarks/micro/
Dmicro_test.go20 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
85 m := &testpb.TestAllTypes{}
107 m := &testpb.TestAllTypes{}
118 mt := (&testpb.TestAllTypes{}).ProtoReflect().Type()
/external/golang-protobuf/internal/filedesc/
Dbuild_test.go17 testpb "google.golang.org/protobuf/internal/testprotos/test" packageName
22 var testFile = new(testpb.TestAllTypes).ProtoReflect().Descriptor().ParentFile()
34 zb, _ := (&testpb.TestAllTypes{}).Descriptor()
/external/golang-protobuf/reflect/protoregistry/
Dregistry_test.go21 testpb "google.golang.org/protobuf/internal/testprotos/registry" packageName
336 mt1 := pimpl.Export{}.MessageTypeOf(&testpb.Message1{})
337 et1 := pimpl.Export{}.EnumTypeOf(testpb.Enum1_ONE)
338 xt1 := testpb.E_StringField
339 xt2 := testpb.E_Message4_MessageField

12