• Home
  • Raw
  • Download

Lines Matching +full:unknown +full:- +full:key

2 // Use of this source code is governed by a BSD-style
129 opt_sint32: -1001
130 opt_sint64: - 0xffff
132 opt_sfixed32: - 32
144 OptSint32: proto.Int32(-1001),
145 OptSint64: proto.Int64(-0xffff),
147 OptSfixed32: proto.Int32(-32),
157 wantErr: "unknown field: S_BOOL",
166 s_sint32: -1001
167 s_sint64: - #
170 s_sfixed32: -32
182 SSint32: -1001,
183 SSint64: -0xffff,
185 SSfixed32: -32,
192 desc: "proto2 string with invalid UTF-8",
199 desc: "proto3 string with invalid UTF-8",
202 wantErr: "(line 1:11): contains invalid UTF-8",
204 desc: "proto2 message contains unknown field",
207 wantErr: "unknown field",
209 desc: "proto3 message contains unknown field",
212 wantErr: "unknown field",
214 desc: "proto2 message contains discarded unknown field",
219 desc: "proto3 message contains discarded unknown field",
230 desc: "unknown list field",
235 desc: "unknown list of list field",
247 desc: "proto2 numeric key field",
252 desc: "proto3 numeric key field",
274 inputText: "s_fixed32: -42",
279 inputText: "s_uint64: -47",
289 inputText: "s_sint64: '-47'",
294 inputText: "s_fixed32: -42",
299 inputText: "s_fixed64: -42",
314 inputText: `s_int32: - `,
315 wantErr: "(line 1:10): invalid scalar value: -",
361 wantErr: `(line 3:1): non-repeated field "opt_bool" is repeated`,
370 wantErr: `(line 4:1): non-repeated field "opt_bool" is repeated`,
385 wantErr: `non-repeated field "s_bool" is repeated`,
394 wantErr: `non-repeated field "s_bool" is repeated`,
422 opt_nested_enum: -101
426 OptNestedEnum: pb2.Enums_NestedEnum(-101).Enum(),
463 s_nested_enum: -0x80000000
467 SNestedEnum: -0x80000000,
495 wantErr: "unknown field: optgroup",
542 desc: "proto3 nested message contains invalid UTF-8",
548 wantErr: "contains invalid UTF-8",
637 desc: "repeated proto2 contains invalid UTF-8",
644 desc: "repeated proto3 contains invalid UTF-8",
647 wantErr: "contains invalid UTF-8",
656 rpt_nested_enum: -47
660 RptNestedEnum: []pb2.Enums_NestedEnum{pb2.Enums_DOS, pb2.Enums_DOS, -47},
747 rpt_float: [ inf, Inf, infinity, InFiniTy, -inf, -inF, -infinitY, -InfinitY, nan, NaN, Nan ],
748 rpt_double: [ inf, Inf, infinity, InFiniTy, -inf, -inF, -infinitY, -InfinitY, nan, NaN, Nan ],
756 float32(math.Inf(-1)),
757 float32(math.Inf(-1)),
758 float32(math.Inf(-1)),
759 float32(math.Inf(-1)),
769 math.Inf(-1),
770 math.Inf(-1),
771 math.Inf(-1),
772 math.Inf(-1),
783 key: -101
784 value: "-101"
787 key: 0
791 key: false
795 key: 255
799 key: true
805 -101: "-101",
819 key: 1
823 key: 2
827 key: 10
843 key: "nested_one"
861 key: "nested"
869 key: "string"
896 key: 0
900 key: 0
910 desc: "map contains duplicate key fields",
914 key: 0
915 key: 1
919 wantErr: `map entry "key" cannot be repeated`,
925 key: 1
932 desc: "map contains missing key",
961 key: 100
964 key: true
967 key: 101
970 key: "hello"
988 desc: "map contains missing key and value",
1015 key: 0
1028 desc: "proto2 map field value contains invalid UTF-8",
1031 key: 101
1039 desc: "proto2 map field key contains invalid UTF-8",
1042 key: "abc\xff"
1050 desc: "proto3 map field value contains invalid UTF-8",
1053 key: 101
1057 wantErr: "contains invalid UTF-8",
1059 desc: "proto3 map field key contains invalid UTF-8",
1062 key: "abc\xff"
1066 wantErr: "contains invalid UTF-8",
1068 desc: "map contains unknown field",
1072 key: 0
1074 unknown: "bad"
1077 wantErr: `(line 5:3): unknown map entry field "unknown"`,
1079 desc: "map contains extension-like key field",
1083 [key]: 10
1087 wantErr: `unknown map entry field "[key]"`,
1089 desc: "map contains invalid key",
1093 key: "invalid"
1103 key: 100
1113 key: "one"
1123 key: 1
1128 key: 2
1134 key: 3
1139 key: 2
1270 key: "missing"
1273 key: "contains"
1294 key: "missing"
1297 key: "contains"
1339 desc: "extensions of non-repeated fields",
1341 inputText: `opt_string: "non-extension field"
1356 OptString: proto.String("non-extension field"),
1372 desc: "extension field contains invalid UTF-8",
1410 desc: "extensions of non-repeated fields in another message",
1438 inputText: `opt_string: "non-extension field"
1458 OptString: proto.String("non-extension field"),
1475 wantErr: "unknown field",
1629 desc: "Any with invalid UTF-8",
1636 wantErr: "contains invalid UTF-8",
1649 desc: "Any expanded with unknown fields",
1653 unknown: ""
1655 wantErr: `invalid field name "unknown" in google.protobuf.Any message`,
1675 desc: "weak fields; unknown field",
1678 …wantErr: "unknown field: weak_message2", // weak_message2 is unknown since the package contai…