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

Function testVersionDecodable

request_test.go:593–599  ·  view source on GitHub ↗
(t *testing.T, name string, out versionedDecoder, in []byte, version int16)

Source from the content-addressed store, hash-verified

591}
592
593func testVersionDecodable(t *testing.T, name string, out versionedDecoder, in []byte, version int16) {
594 t.Helper()
595 err := versionedDecode(in, out, version, nil)
596 if err != nil {
597 t.Error("Decoding", name, "version", version, "failed:", err)
598 }
599}
600
601func testRequest(t *testing.T, name string, rb protocolBody, expected []byte) {
602 t.Helper()

Calls 3

versionedDecodeFunction · 0.85
HelperMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected