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

@@ -74,3 +74,7 @@ func (sf *SlipFramer) Encode(data []byte) []byte {
func (sf *SlipFramer) Clear() {
sf.buffer = []byte{}
}
func (sf *SlipFramer) Buffer() []byte {
return sf.buffer
}