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

Method test_custom

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

Source from the content-addressed store, hash-verified

451 assert param.prefetch_lines == 0
452
453 def test_custom(self):
454 param = HnswQueryParam(
455 ef=10,
456 is_using_refiner=True,
457 radius=30,
458 is_linear=True,
459 extra_params={
460 "prefetch_offset": 16,
461 "prefetch_lines": 4,
462 },
463 )
464 assert param.ef == 10
465 assert param.is_using_refiner == True
466 assert param.radius == 30
467 assert param.is_linear == True
468 assert param.prefetch_offset == 16
469 assert param.prefetch_lines == 4
470
471 def test_readonly_attributes(self):
472 param = HnswQueryParam()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected