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

Method AppendEvent

cli/hub_sync_test.go:49–57  ·  view source on GitHub ↗
(_ context.Context, ev models.ConversationEvent)

Source from the content-addressed store, hash-verified

47}
48
49func (f *fakeHubClient) AppendEvent(_ context.Context, ev models.ConversationEvent) (models.ConversationEvent, error) {
50 f.mu.Lock()
51 defer f.mu.Unlock()
52 f.seq++
53 ev.Seq = f.seq
54 f.events = append(f.events, ev)
55 f.appended = append(f.appended, ev)
56 return ev, nil
57}
58
59func (f *fakeHubClient) ReadConversation(_ context.Context, _ string, sinceSeq int64, _ int) ([]models.ConversationEvent, error) {
60 f.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected