Skip to content
Snippets Groups Projects
Commit 395888c8 authored by Oliver Herms's avatar Oliver Herms
Browse files

Adding test

parent f4fc3601
No related branches found
No related tags found
No related merge requests found
...@@ -28,13 +28,20 @@ func TestDecodeInformationTLV(t *testing.T) { ...@@ -28,13 +28,20 @@ func TestDecodeInformationTLV(t *testing.T) {
}, },
}, },
{ {
name: "Incomplete", name: "Incomplete Value",
input: []byte{ input: []byte{
0, 10, 0, 5, 0, 10, 0, 5,
1, 2, 3, 4, 1, 2, 3, 4,
}, },
wantFail: true, wantFail: true,
}, },
{
name: "Incomplete Header",
input: []byte{
0, 10,
},
wantFail: true,
},
} }
for _, test := range tests { for _, test := range tests {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment