@@ -20,10 +20,7 @@ defmodule Protobuf.Protoc.Generator.MessageTest do
20
20
quote (
21
21
do:
22
22
t ( ) :: % Foo {
23
- __unknown_fields__: [
24
- { field_number :: integer ( ) , Protobuf.Wire.Types . wire_type ( ) ,
25
- value :: term ( ) }
26
- ]
23
+ __unknown_fields__: [ Protobuf . unknown_field ( ) ]
27
24
}
28
25
)
29
26
)
@@ -48,10 +45,7 @@ defmodule Protobuf.Protoc.Generator.MessageTest do
48
45
quote (
49
46
do:
50
47
t ( ) :: % Foo {
51
- __unknown_fields__: [
52
- { field_number :: integer ( ) , Protobuf.Wire.Types . wire_type ( ) ,
53
- value :: term ( ) }
54
- ]
48
+ __unknown_fields__: [ Protobuf . unknown_field ( ) ]
55
49
}
56
50
)
57
51
)
@@ -177,10 +171,7 @@ defmodule Protobuf.Protoc.Generator.MessageTest do
177
171
quote (
178
172
do:
179
173
t ( ) :: % Foo {
180
- __unknown_fields__: [
181
- { field_number :: integer ( ) , Protobuf.Wire.Types . wire_type ( ) ,
182
- value :: term ( ) }
183
- ] ,
174
+ __unknown_fields__: [ Protobuf . unknown_field ( ) ] ,
184
175
a: integer ( ) ,
185
176
b: String . t ( ) ,
186
177
c: [ integer ( ) ]
@@ -371,10 +362,7 @@ defmodule Protobuf.Protoc.Generator.MessageTest do
371
362
quote (
372
363
do:
373
364
t ( ) :: % Foo {
374
- __unknown_fields__: [
375
- { field_number :: integer ( ) , Protobuf.Wire.Types . wire_type ( ) ,
376
- value :: term ( ) }
377
- ] ,
365
+ __unknown_fields__: [ Protobuf . unknown_field ( ) ] ,
378
366
bar: Bar . t ( ) | nil ,
379
367
baz: [ Baz . t ( ) ]
380
368
}
@@ -443,10 +431,7 @@ defmodule Protobuf.Protoc.Generator.MessageTest do
443
431
quote (
444
432
do:
445
433
t ( ) :: % FooBar.AbCd.Foo {
446
- __unknown_fields__: [
447
- { field_number :: integer ( ) , Protobuf.Wire.Types . wire_type ( ) ,
448
- value :: term ( ) }
449
- ] ,
434
+ __unknown_fields__: [ Protobuf . unknown_field ( ) ] ,
450
435
a: % { optional ( integer ( ) ) => FooBar.AbCd.Bar . t ( ) | nil }
451
436
}
452
437
)
@@ -535,10 +520,7 @@ defmodule Protobuf.Protoc.Generator.MessageTest do
535
520
quote (
536
521
do:
537
522
t ( ) :: % FooBar.AbCd.Foo {
538
- __unknown_fields__: [
539
- { field_number :: integer ( ) , Protobuf.Wire.Types . wire_type ( ) ,
540
- value :: term ( ) }
541
- ] ,
523
+ __unknown_fields__: [ Protobuf . unknown_field ( ) ] ,
542
524
a: OtherPkg.MsgFoo . t ( ) | nil
543
525
}
544
526
)
@@ -598,10 +580,7 @@ defmodule Protobuf.Protoc.Generator.MessageTest do
598
580
quote (
599
581
do:
600
582
t ( ) :: % MyPkg.Foo {
601
- __unknown_fields__: [
602
- { field_number :: integer ( ) , Protobuf.Wire.Types . wire_type ( ) ,
603
- value :: term ( ) }
604
- ] ,
583
+ __unknown_fields__: [ Protobuf . unknown_field ( ) ] ,
605
584
a: MyPkg.Foo.Nested . t ( ) | nil
606
585
}
607
586
)
@@ -702,10 +681,7 @@ defmodule Protobuf.Protoc.Generator.MessageTest do
702
681
quote (
703
682
do:
704
683
t ( ) :: % Foo {
705
- __unknown_fields__: [
706
- { field_number :: integer ( ) , Protobuf.Wire.Types . wire_type ( ) ,
707
- value :: term ( ) }
708
- ] ,
684
+ __unknown_fields__: [ Protobuf . unknown_field ( ) ] ,
709
685
first: { :a , integer ( ) } | { :b , integer ( ) } | nil ,
710
686
other: integer ( ) | nil ,
711
687
second: { :c , integer ( ) } | { :d , integer ( ) } | nil
@@ -809,10 +785,7 @@ defmodule Protobuf.Protoc.Generator.MessageTest do
809
785
quote (
810
786
do:
811
787
t ( ) :: % FooBar.AbCd.Foo {
812
- __unknown_fields__: [
813
- { field_number :: integer ( ) , Protobuf.Wire.Types . wire_type ( ) ,
814
- value :: term ( ) }
815
- ] ,
788
+ __unknown_fields__: [ Protobuf . unknown_field ( ) ] ,
816
789
a: [ FooBar.AbCd.EnumFoo . t ( ) ]
817
790
}
818
791
)
0 commit comments