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

Struct fakeMessagingClient

core/services/jobs/dispatcher_test.go:22–24  ·  view source on GitHub ↗

fakeMessagingClient implements messaging.MessagingClient and records published messages.

Source from the content-addressed store, hash-verified

20
21// fakeMessagingClient implements messaging.MessagingClient and records published messages.
22type fakeMessagingClient struct {
23 calls []publishCall
24}
25
26func (f *fakeMessagingClient) Publish(subject string, data any) error {
27 f.calls = append(f.calls, publishCall{subject: subject, data: data})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected