From 15af4367e50e66f075917f5e7a7866f1c9a8d917 Mon Sep 17 00:00:00 2001 From: boukeversteegh Date: Sun, 24 May 2020 20:24:55 +0200 Subject: [PATCH] Test case for issue #57 --- .../inputs/import_child_package_from_root/child.proto | 7 +++++++ .../import_child_package_from_root.proto | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 betterproto/tests/inputs/import_child_package_from_root/child.proto create mode 100644 betterproto/tests/inputs/import_child_package_from_root/import_child_package_from_root.proto diff --git a/betterproto/tests/inputs/import_child_package_from_root/child.proto b/betterproto/tests/inputs/import_child_package_from_root/child.proto new file mode 100644 index 0000000..c874e14 --- /dev/null +++ b/betterproto/tests/inputs/import_child_package_from_root/child.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +package childpackage; + +message Message { + +} diff --git a/betterproto/tests/inputs/import_child_package_from_root/import_child_package_from_root.proto b/betterproto/tests/inputs/import_child_package_from_root/import_child_package_from_root.proto new file mode 100644 index 0000000..d0c111f --- /dev/null +++ b/betterproto/tests/inputs/import_child_package_from_root/import_child_package_from_root.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +import "child.proto"; + +// Tests generated imports when a message in root refers to a message in a child package. + +message Test { + childpackage.Message child = 1; +}