add tests for framers

This commit is contained in:
Joel Wetzell
2025-12-08 18:03:09 -06:00
parent bb78b7b08b
commit ffb39b1034
5 changed files with 123 additions and 0 deletions

View File

@@ -35,3 +35,7 @@ func (bsf *ByteSeparatorFramer) Encode(data []byte) []byte {
func (bsf *ByteSeparatorFramer) Clear() {
bsf.buffer = []byte{}
}
func (bsf *ByteSeparatorFramer) Buffer() []byte {
return bsf.buffer
}