Skip to content

Commit 0c1815f

Browse files
committed
Add more plugin integration tests
Motivation: The SwiftPM build plugin doesn't currently handle proto files with the same name even if they come from different packages. This happens because the build system cannot handle object files with the same name. This change adds such a test while tidying up some of the plugin test code. Modifications: - Divide up test resources in sources, config, and proto directories. - Have one function per test - Document each test with the expected structure - Add another test but don't run it. (It fails.) Result: More tests. The issue will be fixed in a separate change.
1 parent 7af6b40 commit 0c1815f

15 files changed

+233
-60
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
syntax = "proto3";
2+
3+
import "google/protobuf/empty.proto";
4+
5+
package noop;
6+
7+
service NoOpService {
8+
rpc NoOp(google.protobuf.Empty) returns (google.protobuf.Empty);
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
syntax = "proto3";
2+
3+
import "google/protobuf/empty.proto";
4+
5+
package noop2;
6+
7+
service NoOpService {
8+
rpc NoOp(google.protobuf.Empty) returns (google.protobuf.Empty);
9+
}

0 commit comments

Comments
 (0)