Method
NewConversation
(_ context.Context, _ string)
Source from the content-addressed store, hash-verified
| 38 | } |
| 39 | |
| 40 | func (f *fakeHubClient) NewConversation(_ context.Context, _ string) (string, error) { |
| 41 | f.mu.Lock() |
| 42 | defer f.mu.Unlock() |
| 43 | f.convCounter++ |
| 44 | f.convID = fmt.Sprintf("conv-%d", f.convCounter) |
| 45 | f.events = nil // ephemeral: rotating prunes the prior thread |
| 46 | return f.convID, nil |
| 47 | } |
| 48 | |
| 49 | func (f *fakeHubClient) AppendEvent(_ context.Context, ev models.ConversationEvent) (models.ConversationEvent, error) { |
| 50 | f.mu.Lock() |
Callers
nothing calls this directly
Tested by
no test coverage detected