Skip to content

Commit

Permalink
deserialization: add tests for DeserializeFunc
Browse files Browse the repository at this point in the history
  • Loading branch information
turtleDev committed Sep 5, 2024
1 parent 855968e commit fbc699c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deserialization/proto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ func TestProtoDeserilizer_Deserialize(t *testing.T) {
},
wantErr: false,
},
{
name: "Return error for non-proto message",
d: DeserializeProto,
args: args{
b: []byte{},
i: struct{}{},
},
wantErr: true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit fbc699c

Please sign in to comment.