MCPcopy Create free account
hub / github.com/alibaba/zvec / test_default

Method test_default

python/tests/test_params.py:488–496  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

486# ----------------------------
487class TestIvfRabitqQueryParam:
488 def test_default(self):
489 param = IvfRabitqQueryParam()
490 assert param is not None
491 assert param.nprobe == 10
492 assert param.is_using_refiner == False
493 assert param.radius == 0
494 assert param.is_linear == False
495 assert param.scale_factor == 10.0
496 assert param.type == IndexType.IVF_RABITQ
497
498 def test_custom(self):
499 param = IvfRabitqQueryParam(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected