MCPcopy
hub / github.com/segmentio/kafka-go / String

Function String

protocol/prototest/bytes.go:13–15  ·  view source on GitHub ↗

String constructs a Bytes which exposes the content of s.

(s string)

Source from the content-addressed store, hash-verified

11
12// String constructs a Bytes which exposes the content of s.
13func String(s string) protocol.Bytes {
14 return protocol.NewBytes([]byte(s))
15}

Callers 6

TestFetchResponseFunction · 0.92
BenchmarkFetchResponseFunction · 0.92
TestProduceRequestFunction · 0.92
BenchmarkProduceRequestFunction · 0.92
TestRawProduceRequestFunction · 0.92
BenchmarkProduceRequestFunction · 0.92

Calls 1

NewBytesFunction · 0.92

Tested by 6

TestFetchResponseFunction · 0.74
BenchmarkFetchResponseFunction · 0.74
TestProduceRequestFunction · 0.74
BenchmarkProduceRequestFunction · 0.74
TestRawProduceRequestFunction · 0.74
BenchmarkProduceRequestFunction · 0.74