summaryrefslogtreecommitdiffstats
path: root/tests/inputs/recursivemessage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/inputs/recursivemessage/recursivemessage.json12
-rw-r--r--tests/inputs/recursivemessage/recursivemessage.proto15
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/inputs/recursivemessage/recursivemessage.json b/tests/inputs/recursivemessage/recursivemessage.json
new file mode 100644
index 0000000..e92c3fb
--- /dev/null
+++ b/tests/inputs/recursivemessage/recursivemessage.json
@@ -0,0 +1,12 @@
+{
+ "name": "Zues",
+ "child": {
+ "name": "Hercules"
+ },
+ "intermediate": {
+ "child": {
+ "name": "Douglas Adams"
+ },
+ "number": 42
+ }
+}
diff --git a/tests/inputs/recursivemessage/recursivemessage.proto b/tests/inputs/recursivemessage/recursivemessage.proto
new file mode 100644
index 0000000..1da2b57
--- /dev/null
+++ b/tests/inputs/recursivemessage/recursivemessage.proto
@@ -0,0 +1,15 @@
+syntax = "proto3";
+
+package recursivemessage;
+
+message Test {
+ string name = 1;
+ Test child = 2;
+ Intermediate intermediate = 3;
+}
+
+
+message Intermediate {
+ int32 number = 1;
+ Test child = 2;
+}