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

Function knowledgeTestContext

cli/ctxmgr/knowledge_test.go:146–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146func knowledgeTestContext() *FileContext {
147 return &FileContext{
148 ID: "kb-test",
149 Name: "chatcli-docs",
150 Mode: ModeKnowledge,
151 Files: []utils.FileInfo{
152 {Path: "guide/install.md#0001", Type: "md", Content: "# Install\nHow to install the CLI.", Size: 33},
153 {Path: "guide/install.md#0002", Type: "md", Content: "## Homebrew\nbrew install chatcli", Size: 32},
154 {Path: "api/auth.md#0001", Type: "md", Content: "# Auth\noauth login bearer token flows", Size: 37},
155 },
156 FileCount: 3,
157 TotalSize: 102,
158 Metadata: map[string]string{
159 knowledgeMetaRepoURL: "https://github.com/org/docs.git",
160 knowledgeMetaCommit: "abc123def4567890",
161 },
162 }
163}
164
165func TestBuildKnowledgeDigest_StableAndBounded(t *testing.T) {
166 fc := knowledgeTestContext()

Calls

no outgoing calls

Tested by

no test coverage detected