MCPcopy
hub / github.com/mudler/LocalAI / fakeMessagingClient

Struct fakeMessagingClient

core/services/nodes/unloader_test.go:49–56  ·  view source on GitHub ↗

fakeMessagingClient implements messaging.MessagingClient, recording Publish and Request calls so we can assert on subjects and payloads.

Source from the content-addressed store, hash-verified

47// fakeMessagingClient implements messaging.MessagingClient, recording Publish
48// and Request calls so we can assert on subjects and payloads.
49type fakeMessagingClient struct {
50 mu sync.Mutex
51 published []publishCall
52 publishErr error // error to return from Publish
53 requestReply []byte
54 requestErr error
55 requestCalls []requestCall
56}
57
58type publishCall struct {
59 Subject string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected