Files
mautrix-telegram/pkg/gotd/proto/codec/no_header_test.go
T
2025-06-27 20:03:37 -07:00

21 lines
304 B
Go

package codec
import (
"bytes"
"testing"
"github.com/stretchr/testify/require"
)
func TestNoHeader(t *testing.T) {
a := require.New(t)
cdc := NoHeader{
Codec: Intermediate{},
}
buf := bytes.Buffer{}
a.NoError(cdc.WriteHeader(&buf))
a.Equal(0, buf.Len())
a.NoError(cdc.ReadHeader(&buf))
}