summaryrefslogtreecommitdiffstats
path: root/tests/inputs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'tests/inputs/ref')
-rw-r--r--tests/inputs/ref/ref.json5
-rw-r--r--tests/inputs/ref/ref.proto9
-rw-r--r--tests/inputs/ref/repeatedmessage.proto11
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/inputs/ref/ref.json b/tests/inputs/ref/ref.json
new file mode 100644
index 0000000..2c6bdc1
--- /dev/null
+++ b/tests/inputs/ref/ref.json
@@ -0,0 +1,5 @@
+{
+ "greeting": {
+ "greeting": "hello"
+ }
+}
diff --git a/tests/inputs/ref/ref.proto b/tests/inputs/ref/ref.proto
new file mode 100644
index 0000000..6945590
--- /dev/null
+++ b/tests/inputs/ref/ref.proto
@@ -0,0 +1,9 @@
+syntax = "proto3";
+
+package ref;
+
+import "repeatedmessage.proto";
+
+message Test {
+ repeatedmessage.Sub greeting = 1;
+}
diff --git a/tests/inputs/ref/repeatedmessage.proto b/tests/inputs/ref/repeatedmessage.proto
new file mode 100644
index 0000000..0ffacaf
--- /dev/null
+++ b/tests/inputs/ref/repeatedmessage.proto
@@ -0,0 +1,11 @@
+syntax = "proto3";
+
+package repeatedmessage;
+
+message Test {
+ repeated Sub greetings = 1;
+}
+
+message Sub {
+ string greeting = 1;
+} \ No newline at end of file