(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestDecodeCompressionMethods(t *testing.T) { |
| 13 | testCases := []struct { |
| 14 | buf []byte |
| 15 | result []*CompressionMethod |
| 16 | err error |
| 17 | }{ |
| 18 | {[]byte{}, nil, errBufferTooSmall}, |
| 19 | } |
| 20 | |
| 21 | for _, testCase := range testCases { |
| 22 | _, err := DecodeCompressionMethods(testCase.buf) |
| 23 | assert.ErrorIs(t, err, testCase.err) |
| 24 | } |
| 25 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…