(self)
| 85 | # ---------------------------- |
| 86 | class TestVectorSchema: |
| 87 | def test_default(self): |
| 88 | field = VectorSchema("vector", data_type=DataType.VECTOR_FP32, dimension=128) |
| 89 | assert field.name == "vector" |
| 90 | assert field.data_type == DataType.VECTOR_FP32 |
| 91 | assert field.dimension == 128 |
| 92 | assert field.index_param is not None |
| 93 | assert field.index_param.type == IndexType.FLAT |
| 94 | assert field.index_param.metric_type == MetricType.IP |
| 95 | |
| 96 | def test_custom(self): |
| 97 | field = VectorSchema( |
nothing calls this directly
no test coverage detected