........................................................................ [ 10%]
........................................................................ [ 20%]
........................................................................ [ 31%]
........................................................................ [ 41%]
........................................................................ [ 52%]
........................................................................ [ 62%]
........................................................................ [ 73%]
........................................................................ [ 83%]
........................................................................ [ 93%]
..........................................                               [100%]
=============================== warnings summary ===============================
tests/integration/test_embed_idempotency.py::TestEmbedIdempotency::test_two_embed_runs_leave_one_row_per_live_chunk
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/types.py:83: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168a9d210>
    def __call__(
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestEmbedIdempotency::test_default_run_skips_complete_then_force_reembeds_all
  /Users/forrest/miniconda3/lib/python3.13/uuid.py:174: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168a9de40>
    if [hex, bytes, bytes_le, fields, int].count(None) != 4:
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestEmbedIdempotency::test_default_run_skips_complete_then_force_reembeds_all
  /Users/forrest/miniconda3/lib/python3.13/uuid.py:174: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168a9f3d0>
    if [hex, bytes, bytes_le, fields, int].count(None) != 4:
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestEmbedIdempotency::test_default_run_skips_complete_then_force_reembeds_all
  /Users/forrest/miniconda3/lib/python3.13/uuid.py:174: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168a9f010>
    if [hex, bytes, bytes_le, fields, int].count(None) != 4:
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestEmbedIdempotency::test_default_run_self_heals_partial_state
  /Users/forrest/miniconda3/lib/python3.13/unittest/mock.py:799: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168a9e7a0>
    def __setattr__(self, name, value):
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestEmbedIdempotency::test_default_run_self_heals_partial_state
  /Users/forrest/miniconda3/lib/python3.13/unittest/mock.py:799: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168a9cc70>
    def __setattr__(self, name, value):
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestEmbedIdempotency::test_default_run_self_heals_partial_state
  /Users/forrest/miniconda3/lib/python3.13/unittest/mock.py:799: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168a9f1f0>
    def __setattr__(self, name, value):
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestDimensionMismatchFailsFast::test_model_dim_mismatch_exits_with_remediation_message
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/globals.py:44: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168a9c310>
    def push_context(ctx: Context) -> None:
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestDimensionMismatchFailsFast::test_model_dim_mismatch_exits_with_remediation_message
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/globals.py:44: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168bbc310>
    def push_context(ctx: Context) -> None:
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestDimensionMismatchFailsFast::test_model_dim_mismatch_exits_with_remediation_message
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/globals.py:44: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168bbd210>
    def push_context(ctx: Context) -> None:
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestRemovalPurgesEmbeddings::test_removed_file_leaves_no_embeddings
  /Users/forrest/miniconda3/lib/python3.13/site-packages/rich/console.py:159: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168a9eb60>
    options: ConsoleOptions = ConsoleOptions.__new__(ConsoleOptions)
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestRemovalPurgesEmbeddings::test_removed_file_leaves_no_embeddings
  /Users/forrest/miniconda3/lib/python3.13/site-packages/rich/console.py:159: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168a9f790>
    options: ConsoleOptions = ConsoleOptions.__new__(ConsoleOptions)
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_embed_idempotency.py::TestRemovalPurgesEmbeddings::test_removed_file_leaves_no_embeddings
  /Users/forrest/miniconda3/lib/python3.13/site-packages/rich/console.py:159: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168bbd3f0>
    options: ConsoleOptions = ConsoleOptions.__new__(ConsoleOptions)
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/integration/test_search_pipeline.py::TestSearchPipelineIntegration::test_vector_search_pipeline
  /Users/forrest/miniconda3/lib/python3.13/unittest/mock.py:802: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168bbc040>
    return object.__setattr__(self, name, value)
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/test_docs.py::TestDocsCodeBlocks::test_shell_commands_exist
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/parser.py:139: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168bbc400>
    self.prefixes: set[str] = set()
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/test_docs.py::TestDocsCodeBlocks::test_shell_commands_exist
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/parser.py:139: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x168bbd5d0>
    self.prefixes: set[str] = set()
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/unit/search/test_bm25.py::TestBM25ContextAttachment::test_search_no_context_returns_none
  /Users/forrest/miniconda3/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x16990a5c0>
    def __init__(self, name, parent):
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/unit/search/test_hybrid.py::TestSearchPipelineExpansion::test_pipeline_with_expansion
  /Users/forrest/miniconda3/lib/python3.13/unittest/mock.py:2193: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x16990b2e0>
    setattr(_type, entry, MagicProxy(entry, self))
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================ tests coverage ================================
_______________ coverage: platform darwin, python 3.13.9-final-0 _______________

Name                                 Stmts   Miss  Cover   Missing
------------------------------------------------------------------
src/sif/_version.py                      1      1     0%   3
src/sif/cli/commands/bench.py           83     14    83%   77, 86-89, 103-109, 128-129
src/sif/cli/commands/collection.py     234    131    44%   44-68, 77-98, 107-126, 134-175, 183-208, 216-231, 239-254, 277, 297, 315, 327-360
src/sif/cli/commands/context.py        134      6    96%   90, 208-209, 231, 244-245
src/sif/cli/commands/get.py            122     34    72%   42-43, 57-64, 68, 72-82, 95-106, 115, 133-134, 155-157, 193
src/sif/cli/commands/index.py          216     24    89%   65, 70-73, 81, 140-143, 151-153, 220-221, 271, 282-283, 313-315, 324, 343-344, 420-422
src/sif/cli/commands/ls.py              44      2    95%   48, 56
src/sif/cli/commands/mcp.py             46     20    57%   18, 25-39, 61-72, 91
src/sif/cli/commands/pull.py            63      7    89%   30, 35-36, 42, 56, 83-84
src/sif/cli/commands/search.py         356     76    79%   94-95, 97-98, 114-115, 164, 167-169, 184-190, 268, 275-276, 312, 315-320, 338, 343-346, 359-365, 378-379, 394-416, 475, 478-480, 498-504, 528, 534-537, 546-547, 587, 595, 604, 639
src/sif/cli/config.py                  109    109     0%   3-206
src/sif/cli/formatters.py              157    111    29%   24-33, 38-45, 50-67, 73-82, 87, 92-95, 100-101, 110-111, 116-119, 124-126, 135-152, 157-158, 163-164, 169-170, 175-176, 186-188, 197-213, 245-246, 250-272, 277
src/sif/cli/main.py                    123     38    69%   117-118, 142-144, 152-199, 205-212, 216
src/sif/config/settings.py              87      9    90%   200, 209, 215, 225-232
src/sif/core/collection.py              74     23    69%   41-42, 46-47, 130-140, 148-153, 157-162
src/sif/core/context.py                 73     37    49%   35-36, 84, 93-107, 111, 115, 119-124, 128, 132-134, 146-168
src/sif/core/document.py                63     10    84%   36, 62-67, 72, 76, 80, 84-85
src/sif/core/models.py                 141      7    95%   58, 77, 116, 162, 166, 196, 271
src/sif/database/database.py            85     32    62%   48-49, 66-68, 87-90, 95-101, 109-110, 115-138
src/sif/database/migrations.py          37     24    35%   123, 127-133, 137-156, 161-168, 172-188
src/sif/database/repositories.py       173     47    73%   53-55, 98-99, 103-104, 176-181, 188-190, 238-252, 256-258, 262-266, 329-331, 397, 401-402, 414-419, 423-431, 509, 513-522, 533-538, 557-561
src/sif/database/schema.py             128     12    91%   129-131, 194, 196, 270, 275, 351-364
src/sif/embedding/cache.py              77     31    60%   47-50, 105-106, 139-140, 158, 173-174, 185-201, 209-222
src/sif/embedding/embedder.py          263      8    97%   60, 62, 219, 298, 313, 315, 477-478
src/sif/embedding/factory.py            31      2    94%   37, 92
src/sif/embedding/manager.py            83      4    95%   71, 135, 157, 238
src/sif/indexing/chunker.py             98     28    71%   24, 95, 137-138, 143-180, 202, 223, 226
src/sif/indexing/parser.py              78     38    51%   55-57, 87-104, 150-171, 190-199
src/sif/indexing/scanner.py             48     13    73%   75, 83, 87, 113-114, 120, 122, 136-144
src/sif/mcp/backend.py                 112      9    92%   89-93, 129-131, 145
src/sif/mcp/cli.py                       4      4     0%   3-9
src/sif/mcp/handlers.py                 53     12    77%   111-123, 153-159, 188, 200
src/sif/mcp/protocol.py                141      2    99%   56, 344
src/sif/mcp/server.py                   77     22    71%   63, 95, 112-113, 143-166, 187-193
src/sif/mcp/transports/http.py         114     26    77%   17-23, 59, 94-95, 105-107, 151, 205-208, 212-215, 225-229
src/sif/mcp/transports/stdio.py         81     13    84%   85-86, 117-121, 129-133, 138
src/sif/models/download.py              69     35    49%   64-66, 74-75, 86, 90-91, 94-95, 114-117, 133-136, 152-155, 166-179, 187-190, 198-203
src/sif/search/benchmark.py             53      1    98%   61
src/sif/search/bm25.py                  98      6    94%   45, 209, 224, 231-233
src/sif/search/expansion.py             61      7    89%   63, 116-130
src/sif/search/hybrid.py               145     11    92%   70, 79, 189, 212-213, 235-236, 289, 302-313
src/sif/search/rerank.py               214     82    62%   112, 191, 205-206, 210, 213-214, 270-279, 283-333, 338-342, 351-396, 409
src/sif/search/rrf.py                   71      3    96%   47, 131, 188
src/sif/search/snippets.py             122      5    96%   166, 171-172, 193, 217
src/sif/search/term_match.py            96      7    93%   50, 62, 87, 101, 138, 162, 177
src/sif/utils/logging.py                62     26    58%   43-45, 50-69, 75-80, 86-87, 93-94, 134
src/sif/utils/paths.py                  30     15    50%   16-18, 27-29, 38-40, 94-96, 109-112
src/sif/utils/progress.py               31     12    61%   44-51, 59-60, 64-67, 75, 79, 83
src/sif/utils/text.py                   36     24    33%   23-25, 39-43, 58-65, 78-79, 91-93, 105-106, 119-127
------------------------------------------------------------------
TOTAL                                 5596   1220    78%

27 files skipped due to complete coverage.
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
690 passed, 18 warnings in 12.92s
