MCPcopy
hub / github.com/Tencent/WeKnora / fakeKBRepo

Struct fakeKBRepo

internal/application/service/knowledgebase_pr3_test.go:68–71  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

66// keyed by ID. No tenant scoping is applied — the tested paths already
67// enforce that explicitly.
68type fakeKBRepo struct {
69 rows map[string]*types.KnowledgeBase
70 createErr error
71}
72
73func newFakeKBRepo() *fakeKBRepo { return &fakeKBRepo{rows: map[string]*types.KnowledgeBase{}} }
74

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected