Merge unary RPC info and streaming RPC info

This commit is contained in:
Menghan Li
2016-07-11 13:09:50 -07:00
parent 0ea9f970c0
commit bc8885608f
3 changed files with 26 additions and 35 deletions

View File

@ -92,14 +92,17 @@ func TestGetServiceInfo(t *testing.T) {
info := server.GetServiceInfo()
want := map[string]*ServiceInfo{
"grpc.testing.EmptyService": &ServiceInfo{
Methods: []string{
"EmptyCall",
},
Streams: []*StreamInfo{&StreamInfo{
Name: "EmptyStream",
IsClientStream: true,
IsServerStream: false,
}},
Methods: []MethodInfo{
MethodInfo{
Name: "EmptyCall",
IsClientStream: false,
IsServerStream: false,
},
MethodInfo{
Name: "EmptyStream",
IsClientStream: true,
IsServerStream: false,
}},
Metadata: []int{0, 2, 1, 3},
},
}