njones / socketio

A Modern SocketIO library for go
MIT License
60 stars 9 forks source link

Update and extend the protocol/packet tests #9

Closed njones closed 2 years ago

njones commented 2 years ago

Add in a new way of testing with the addition of closure driven tests and skip options. Expand tests to cover all of the common cases for all supported protocol levels. Added in the msgpack encode/decode for SIO version 2 handling. The current package test coverage is:

ok      github.com/njones/socketio/protocol 0.008s  coverage: 80.6% of statements

Fixes #4

[ look to the wiki for more info on the new test format ]