summaryrefslogtreecommitdiffstats
path: root/tests/inputs/map
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-29 09:40:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-29 09:40:12 +0000
commit14b40ec77a4bf8605789cc3aff0eb87625510a41 (patch)
tree4064d27144d6deaabfcd96df01bd996baa8b51a0 /tests/inputs/map
parentInitial commit. (diff)
downloadpython-aristaproto-upstream.tar.xz
python-aristaproto-upstream.zip
Adding upstream version 1.2+20240521.upstream/1.2+20240521upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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