MCPcopy
hub / github.com/IBM/sarama / testRequest

Function testRequest

request_test.go:601–608  ·  view source on GitHub ↗
(t *testing.T, name string, rb protocolBody, expected []byte)

Source from the content-addressed store, hash-verified

599}
600
601func 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
610func testRequestWithoutByteComparison(t *testing.T, name string, rb protocolBody) {
611 if !rb.requiredVersion().IsAtLeast(MinVersion) {

Calls 6

testRequestEncodeFunction · 0.85
testRequestDecodeFunction · 0.85
HelperMethod · 0.80
IsAtLeastMethod · 0.80
requiredVersionMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected