Add StreamInfo for streaming types

This commit is contained in:
Menghan Li
2016-07-06 11:47:40 -07:00
parent a518fa911d
commit 0ea9f970c0
3 changed files with 28 additions and 12 deletions

View File

@ -79,7 +79,7 @@ func TestGetServiceInfo(t *testing.T) {
{
StreamName: "EmptyStream",
Handler: nil,
ServerStreams: true,
ServerStreams: false,
ClientStreams: true,
},
},
@ -95,9 +95,11 @@ func TestGetServiceInfo(t *testing.T) {
Methods: []string{
"EmptyCall",
},
Streams: []string{
"EmptyStream",
},
Streams: []*StreamInfo{&StreamInfo{
Name: "EmptyStream",
IsClientStream: true,
IsServerStream: false,
}},
Metadata: []int{0, 2, 1, 3},
},
}