TestSubprotocolString roundtrips the parse/format Subprotocol methods on the subprotocol constants.
(t *testing.T)
| 20 | |
| 21 | // TestSubprotocolString roundtrips the parse/format Subprotocol methods on the subprotocol constants. |
| 22 | func TestSubprotocolString(t *testing.T) { |
| 23 | for i := minCBMobileSubprotocolVersion; i <= maxCBMobileSubprotocolVersion; i++ { |
| 24 | str := i.SubprotocolString() |
| 25 | parsed, err := ParseSubprotocolString(str) |
| 26 | require.NoError(t, err) |
| 27 | require.Equal(t, i, parsed) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func TestBlipCorrelationID(t *testing.T) { |
| 32 | db, ctx := setupTestDB(t) |
nothing calls this directly
no test coverage detected