Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/IBM/sarama
/ newMockMessage
Function
newMockMessage
mockresponses.go:285–290 ·
view source on GitHub ↗
(key, msg Encoder)
Source
from the content-addressed store, hash-verified
283
}
284
285
func
newMockMessage(key, msg Encoder) *mockMessage {
286
return
&mockMessage{
287
key: key,
288
msg: msg,
289
}
290
}
291
292
// MockFetchResponse is a `FetchResponse` builder.
293
type
MockFetchResponse
struct
{
Callers
1
SetMessageWithKey
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected