(t *testing.T, name string, rb protocolBody)
| 608 | } |
| 609 | |
| 610 | func testRequestWithoutByteComparison(t *testing.T, name string, rb protocolBody) { |
| 611 | if !rb.requiredVersion().IsAtLeast(MinVersion) { |
| 612 | t.Errorf("Request %s has invalid required version", name) |
| 613 | } |
| 614 | packet := testRequestEncode(t, name, rb, nil) |
| 615 | testRequestDecode(t, name, rb, packet) |
| 616 | } |
| 617 | |
| 618 | func testRequestEncode(t *testing.T, name string, rb protocolBody, expected []byte) []byte { |
| 619 | req := &request{correlationID: 123, clientID: "foo", body: rb} |
no test coverage detected