Skip to content

Commit

Permalink
New tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienVannson committed Nov 8, 2024
1 parent de660dd commit c4a1338
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/inputs/import_child_scoping_rules/child.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
syntax = "proto3";

package import_child_scoping_rules.aaa.bbb.ccc.ddd;

message ChildMessage {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
syntax = "proto3";

package import_child_scoping_rules;

import "package.proto";

message Test {
aaa.bbb.Msg msg = 1;
}
13 changes: 13 additions & 0 deletions tests/inputs/import_child_scoping_rules/package.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
syntax = "proto3";

package import_child_scoping_rules.aaa.bbb;

import "child.proto";

message Msg {
.import_child_scoping_rules.aaa.bbb.ccc.ddd.ChildMessage a = 1;
import_child_scoping_rules.aaa.bbb.ccc.ddd.ChildMessage b = 2;
aaa.bbb.ccc.ddd.ChildMessage c = 3;
bbb.ccc.ddd.ChildMessage d = 4;
ccc.ddd.ChildMessage e = 5;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
syntax = "proto3";

package import_nested_child_package_from_root.package.child.otherchild;

message ChildMessage {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
syntax = "proto3";

package import_nested_child_package_from_root;

import "child.proto";

message Test {
package.child.otherchild.ChildMessage child = 1;
}

0 comments on commit c4a1338

Please sign in to comment.