(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestChunkSourceAndJSONLPath(t *testing.T) { |
| 71 | if got := chunkSource("docs/intro.md#0007"); got != "docs/intro.md" { |
| 72 | t.Errorf("chunkSource = %q", got) |
| 73 | } |
| 74 | if got := chunkSource("plain/path.md"); got != "plain/path.md" { |
| 75 | t.Errorf("chunkSource passthrough = %q", got) |
| 76 | } |
| 77 | if !isJSONLPath("/tmp/x.JSONL") || isJSONLPath("/tmp/x.json") { |
| 78 | t.Error("isJSONLPath extension matching wrong") |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | func TestLexicalIndex_BM25RanksExactTerms(t *testing.T) { |
| 83 | fc := authDBCacheContext() |
nothing calls this directly
no test coverage detected