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

Method SetUp

tests/core/algorithm/flat_sparse/flat_sparse_builder_test.cc:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41shared_ptr<IndexMeta> FlatSparseBuilderTest::_index_meta_ptr;
42
43void FlatSparseBuilderTest::SetUp() {
44 _index_meta_ptr.reset(new (nothrow) IndexMeta(IndexMeta::MetaType::MT_SPARSE,
45 IndexMeta::DataType::DT_FP32));
46 _index_meta_ptr->set_metric("InnerProductSparse", 0, Params());
47}
48
49void FlatSparseBuilderTest::TearDown() {
50 zvec::test_util::RemoveTestPath(_dir);

Callers

nothing calls this directly

Calls 3

ParamsFunction · 0.85
resetMethod · 0.45
set_metricMethod · 0.45

Tested by

no test coverage detected