-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For `Skip()`, if no type is recognized in switch statement, the function returns nil before. This PR fixed it to return an error. This PR also adds a test for protocol, which follows [apache thrift library](https://github.com/apache/thrift/blob/master/lib/go/thrift/protocol_test.go). The original fix already existed in [upstream](https://github.com/apache/thrift/blob/master/lib/go/thrift/protocol.go#L186)
- Loading branch information
1 parent
63552ae
commit 531058b
Showing
2 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters