summaryrefslogtreecommitdiffstats
path: root/tests/inputs/map
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/inputs/map/map.json7
-rw-r--r--tests/inputs/map/map.proto7
-rw-r--r--tests/inputs/mapmessage/mapmessage.json10
-rw-r--r--tests/inputs/mapmessage/mapmessage.proto11
4 files changed, 35 insertions, 0 deletions
diff --git a/tests/inputs/map/map.json b/tests/inputs/map/map.json
new file mode 100644
index 0000000..6a1e853
--- /dev/null
+++ b/tests/inputs/map/map.json
@@ -0,0 +1,7 @@
+{
+ "counts": {
+ "item1": 1,
+ "item2": 2,
+ "item3": 3
+ }
+}
diff --git a/tests/inputs/map/map.proto b/tests/inputs/map/map.proto
new file mode 100644
index 0000000..ecef3cc
--- /dev/null
+++ b/tests/inputs/map/map.proto
@@ -0,0 +1,7 @@
+syntax = "proto3";
+
+package map;
+
+message Test {
+ map<string, int32> counts = 1;
+}
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