diff --git a/protocols/bmp/packet/information_tlv_test.go b/protocols/bmp/packet/information_tlv_test.go index 2e42f5b0bac69a22d5f1cfd29695718dbf143348..f718a1b54f0aec63cee5d03311c292b089830986 100644 --- a/protocols/bmp/packet/information_tlv_test.go +++ b/protocols/bmp/packet/information_tlv_test.go @@ -28,13 +28,20 @@ func TestDecodeInformationTLV(t *testing.T) { }, }, { - name: "Incomplete", + name: "Incomplete Value", input: []byte{ 0, 10, 0, 5, 1, 2, 3, 4, }, wantFail: true, }, + { + name: "Incomplete Header", + input: []byte{ + 0, 10, + }, + wantFail: true, + }, } for _, test := range tests {