Skip to content

Commit 7c81701

Browse files
authored
update testing (#69)
* update testing * combine test graph traversal into a utility
1 parent 64ad8e5 commit 7c81701

File tree

7 files changed

+754
-92
lines changed

7 files changed

+754
-92
lines changed

lib/grpc_reflection/service/builder/util.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ defmodule GrpcReflection.Service.Builder.Util do
163163
[]
164164
end
165165

166+
# in gRPC, the leading "." signifies it is a FQDN
167+
# we trim it and assume everything is a FQDN
168+
# it works so far, but there may be corner cases
166169
def trim_symbol("." <> symbol), do: symbol
167170
def trim_symbol(symbol), do: symbol
168171
end
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
syntax = "proto3";
2+
3+
package recursive_message;
4+
5+
service Service {
6+
rpc call (Request) returns (Reply) {}
7+
}
8+
9+
message Request {
10+
Reply reply = 1;
11+
}
12+
13+
message Reply {
14+
Request request = 1;
15+
}

0 commit comments

Comments
 (0)