Skip to content

Commit

Permalink
WIP: tests for streaming APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
spenczar committed Jun 27, 2018
1 parent c1dacba commit 2f0faea
Show file tree
Hide file tree
Showing 9 changed files with 474 additions and 119 deletions.
20 changes: 12 additions & 8 deletions example/service.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 20 additions & 3 deletions internal/twirptest/importer/importer.twirp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 35 additions & 18 deletions internal/twirptest/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions internal/twirptest/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ service Haberdasher {
rpc MakeHat(Size) returns (Hat);
}

message Req {}
message Resp {}
message Req {
string id = 1;
}
message Resp {
string id = 1;
}
service Streamer {
rpc Transact(Req) returns (Resp);
rpc Upload(stream Req) returns (Resp);
Expand Down
Loading

0 comments on commit 2f0faea

Please sign in to comment.