MCPcopy Create free account
hub / github.com/pion/dtls / TestDecodeCompressionMethods

Function TestDecodeCompressionMethods

pkg/protocol/compression_method_test.go:12–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func 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}

Callers

nothing calls this directly

Calls 1

DecodeCompressionMethodsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…