........................................................................ [  7%]
........................................................................ [ 14%]
........................................................................ [ 21%]
........................................................................ [ 28%]
........................................................................ [ 35%]
........................................................................ [ 42%]
........................................................................ [ 50%]
........................................................................ [ 57%]
........................................................................ [ 64%]
........................................................................ [ 71%]
........................................................................ [ 78%]
........................................................................ [ 85%]
........................................................................ [ 92%]
........................................................................ [100%]
=============================== warnings summary ===============================
tests/unit/cli/test_collection.py::TestCollectionRealDatabase::test_remove_and_missing_remove
  /Users/forrest/GitHub/SIF/src/sif/database/schema.py:326: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x11fa5a200>
    cursor = self.db.execute(
  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/cli/test_collection.py::TestCollectionRealDatabase::test_remove_and_missing_remove
  /Users/forrest/GitHub/SIF/src/sif/database/schema.py:326: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x11fa5b790>
    cursor = self.db.execute(
  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/cli/test_collection.py::TestCollectionRealDatabase::test_exclude_missing
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/core.py:2342: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x106e6fb50>
    def type_cast_value(self, ctx: Context, value: t.Any) -> t.Any:
  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/cli/test_collection.py::TestCollectionRealDatabase::test_exclude_missing
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/core.py:2342: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x11fa5bf10>
    def type_cast_value(self, ctx: Context, value: t.Any) -> t.Any:
  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/cli/test_collection.py::TestCollectionRealDatabase::test_exclude_missing
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/core.py:2342: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x11fa5a4d0>
    def type_cast_value(self, ctx: Context, value: t.Any) -> t.Any:
  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/cli/test_collection.py::TestCollectionRealDatabase::test_exclude_missing
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/core.py:2342: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x1290185e0>
    def type_cast_value(self, ctx: Context, value: t.Any) -> t.Any:
  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/cli/test_collection.py::TestCollectionRealDatabase::test_exclude_missing
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/core.py:2342: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x1290184f0>
    def type_cast_value(self, ctx: Context, value: t.Any) -> t.Any:
  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/cli/test_collection.py::TestCollectionRealDatabase::test_exclude_missing
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/core.py:2342: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x1290187c0>
    def type_cast_value(self, ctx: Context, value: t.Any) -> t.Any:
  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/cli/test_collection.py::TestCollectionRealDatabase::test_exclude_missing
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/core.py:2342: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x129018a90>
    def type_cast_value(self, ctx: Context, value: t.Any) -> t.Any:
  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/cli/test_collection.py::TestCollectionRealDatabase::test_exclude_missing
  /Users/forrest/miniconda3/lib/python3.13/site-packages/click/core.py:2342: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x12901b010>
    def type_cast_value(self, ctx: Context, value: t.Any) -> t.Any:
  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/cli/test_context.py::TestContextList::test_list_all
  /Users/forrest/miniconda3/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x11fa5a110>
    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/cli/test_context.py::TestContextList::test_list_all
  /Users/forrest/miniconda3/lib/python3.13/unittest/mock.py:2247: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x106e6e980>
    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/cli/test_pull.py::TestPullCommand::test_pull_hf_falls_back_to_modelscope
  <frozen os>:794: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x12901b3d0>
  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::TestBM25Searcher::test_build_fts_query_metacharacter_input_finds_documents
  /Users/forrest/miniconda3/lib/python3.13/inspect.py:3098: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x12eaea980>
    params = OrderedDict((param.name, param) for param in parameters)
  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 0x12eaea2f0>
    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.

-- 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/__init__.py                      5      0   100%
src/sif/_version.py                      1      1     0%   3
src/sif/cli/__init__.py                  3      0   100%
src/sif/cli/commands/__init__.py         7      0   100%
src/sif/cli/commands/bench.py           83     14    83%   77, 86-89, 103-109, 128-129
src/sif/cli/commands/collection.py     234      2    99%   206, 249
src/sif/cli/commands/context.py        146      7    95%   109, 127, 252-253, 280, 297-298
src/sif/cli/commands/get.py            124      0   100%
src/sif/cli/commands/index.py          216     24    89%   65, 70-73, 81, 142-145, 153-155, 222-223, 273, 284-285, 317-319, 328, 347-348, 424-426
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         361      2    99%   111, 678
src/sif/cli/formatters.py               13      0   100%
src/sif/cli/main.py                    123     16    87%   142-144, 177-178, 197-199, 205-212, 216
src/sif/config/__init__.py               3      0   100%
src/sif/config/constants.py             25      0   100%
src/sif/config/settings.py              87      9    90%   200, 209, 215, 225-232
src/sif/core/__init__.py                 4      0   100%
src/sif/core/collection.py              74      0   100%
src/sif/core/context.py                 73      0   100%
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/__init__.py             4      0   100%
src/sif/database/connection.py          73      0   100%
src/sif/database/database.py            86      0   100%
src/sif/database/migrations.py          50      4    92%   189-191, 199
src/sif/database/repositories.py       173      0   100%
src/sif/database/repository.py          55      0   100%
src/sif/database/schema.py             142      0   100%
src/sif/embedding/__init__.py            5      0   100%
src/sif/embedding/cache.py              79      0   100%
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/embedding/model.py              33      0   100%
src/sif/indexing/__init__.py             4      0   100%
src/sif/indexing/chunker.py             99      1    99%   24
src/sif/indexing/indexer.py             92      0   100%
src/sif/indexing/parser.py              78      0   100%
src/sif/indexing/scanner.py             48      0   100%
src/sif/indexing/watcher.py             68      0   100%
src/sif/mcp/__init__.py                  5      0   100%
src/sif/mcp/backend.py                 114      6    95%   90-94, 147
src/sif/mcp/cli.py                       4      4     0%   3-9
src/sif/mcp/handlers.py                 53      1    98%   200
src/sif/mcp/protocol.py                141      2    99%   56, 344
src/sif/mcp/server.py                   77      0   100%
src/sif/mcp/transports/__init__.py       4      0   100%
src/sif/mcp/transports/http.py         114      7    94%   17-23
src/sif/mcp/transports/stdio.py         81      0   100%
src/sif/models/__init__.py               6      0   100%
src/sif/models/collection.py            27      0   100%
src/sif/models/context.py               21      0   100%
src/sif/models/document.py              43      0   100%
src/sif/models/download.py              69      0   100%
src/sif/models/embedding.py             39      0   100%
src/sif/models/search.py                50      0   100%
src/sif/search/__init__.py               5      0   100%
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/context_attach.py        14      0   100%
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      3    99%   112, 311, 355
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/strategy.py              20      0   100%
src/sif/search/term_match.py            96      7    93%   50, 62, 87, 101, 138, 162, 177
src/sif/search/vector.py                79      0   100%
src/sif/utils/__init__.py                5      0   100%
src/sif/utils/logging.py                62      0   100%
src/sif/utils/paths.py                  30      0   100%
src/sif/utils/progress.py               34      0   100%
src/sif/utils/text.py                   13      0   100%
------------------------------------------------------------------
TOTAL                                 5375    203    96%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
Required test coverage of 90.0% reached. Total coverage: 96.22%
1008 passed, 15 warnings in 16.81s
