fakeKBRepo is the smallest KnowledgeBaseRepository needed by CreateKnowledgeBase + CopyKnowledgeBase tests. It stores rows in a map keyed by ID. No tenant scoping is applied — the tested paths already enforce that explicitly.
| 66 | // keyed by ID. No tenant scoping is applied — the tested paths already |
| 67 | // enforce that explicitly. |
| 68 | type fakeKBRepo struct { |
| 69 | rows map[string]*types.KnowledgeBase |
| 70 | createErr error |
| 71 | } |
| 72 | |
| 73 | func newFakeKBRepo() *fakeKBRepo { return &fakeKBRepo{rows: map[string]*types.KnowledgeBase{}} } |
| 74 |
nothing calls this directly
no outgoing calls
no test coverage detected