()
| 144 | } |
| 145 | |
| 146 | func 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 | |
| 165 | func TestBuildKnowledgeDigest_StableAndBounded(t *testing.T) { |
| 166 | fc := knowledgeTestContext() |
no outgoing calls
no test coverage detected