MCPcopy Create free account
hub / github.com/diillson/chatcli / fakeHubClient

Struct fakeHubClient

cli/hub_sync_test.go:19–28  ·  view source on GitHub ↗

fakeHubClient is an in-memory HubClient for exercising HubSync without gRPC.

Source from the content-addressed store, hash-verified

17
18// fakeHubClient is an in-memory HubClient for exercising HubSync without gRPC.
19type fakeHubClient struct {
20 mu sync.Mutex
21 convID string
22 convCounter int
23 seq int64
24 events []models.ConversationEvent
25 subCh chan models.ConversationEvent
26 appended []models.ConversationEvent
27 bindings []models.HubBinding
28}
29
30func newFakeHubClient() *fakeHubClient {
31 return &fakeHubClient{convID: "conv-1", convCounter: 1, subCh: make(chan models.ConversationEvent, 16)}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected