summaryrefslogtreecommitdiffstats
path: root/tests/inputs/mapmessage
diff options
context:
space:
mode:
Diffstat (limited to 'tests/inputs/mapmessage')
-rw-r--r--tests/inputs/mapmessage/mapmessage.json10
-rw-r--r--tests/inputs/mapmessage/mapmessage.proto11
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/inputs/mapmessage/mapmessage.json b/tests/inputs/mapmessage/mapmessage.json
new file mode 100644
index 0000000..a944ddd
--- /dev/null
+++ b/tests/inputs/mapmessage/mapmessage.json
@@ -0,0 +1,10 @@
+{
+ "items": {
+ "foo": {
+ "count": 1
+ },
+ "bar": {
+ "count": 2
+ }
+ }
+}
diff --git a/tests/inputs/mapmessage/mapmessage.proto b/tests/inputs/mapmessage/mapmessage.proto
new file mode 100644
index 0000000..2c704a4
--- /dev/null
+++ b/tests/inputs/mapmessage/mapmessage.proto
@@ -0,0 +1,11 @@
+syntax = "proto3";
+
+package mapmessage;
+
+message Test {
+ map<string, Nested> items = 1;
+}
+
+message Nested {
+ int32 count = 1;
+} \ No newline at end of file