(t *testing.T, name string, rb protocolBody, expected []byte)
| 599 | } |
| 600 | |
| 601 | func testRequest(t *testing.T, name string, rb protocolBody, expected []byte) { |
| 602 | t.Helper() |
| 603 | if !rb.requiredVersion().IsAtLeast(MinVersion) { |
| 604 | t.Errorf("Request %s has invalid required version", name) |
| 605 | } |
| 606 | packet := testRequestEncode(t, name, rb, expected) |
| 607 | testRequestDecode(t, name, rb, packet) |
| 608 | } |
| 609 | |
| 610 | func testRequestWithoutByteComparison(t *testing.T, name string, rb protocolBody) { |
| 611 | if !rb.requiredVersion().IsAtLeast(MinVersion) { |
no test coverage detected