(self)
| 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() |
nothing calls this directly
no outgoing calls
no test coverage detected