Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a test for packets smaller than MaxHeaderLength
Summary: #8 mentions this. stack trace ``` goroutine 12 [running]: testing.tRunner.func1.2({0x887460, 0xc00002c1c8}) /usr/lib/golang/src/testing/testing.go:1526 +0x24e testing.tRunner.func1() /usr/lib/golang/src/testing/testing.go:1529 +0x39f panic({0x887460, 0xc00002c1c8}) /usr/lib/golang/src/runtime/panic.go:884 +0x213 github.com/facebookincubator/tacquito.(*Packet).UnmarshalBinary(0xc00006a740, {0xc000028310, 0x52a4a5?, 0x3}) /home/0x34d/project/tacquito/packet.go:126 +0x205 github.com/facebookincubator/tacquito.TestPacket(0xc000007a00?) /home/0x34d/project/tacquito/packet_test.go:450 +0x56 testing.tRunner(0xc000007d40, 0x8ec2b0) /usr/lib/golang/src/testing/testing.go:1576 +0x10b created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:1629 +0x3ea exit status 2 FAIL github.com/facebookincubator/tacquito 0.007s ``` Reviewed By: shringiarpit26 Differential Revision: D50025936 fbshipit-source-id: 294e7050556eeb31202c1658bfd802b170b27196
- Loading branch information