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

Method SetUp

tests/core/algorithm/flat_sparse/flat_sparse_streamer_buffer_test.cc:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void FlatSparseStreamerTest::SetUp() {
85 index_meta_ptr_.reset(new (nothrow) IndexMeta(IndexMeta::MetaType::MT_SPARSE,
86 IndexMeta::DataType::DT_FP32));
87 index_meta_ptr_->set_metric("InnerProductSparse", 0, ailego::Params());
88
89 zvec::test_util::RemoveTestPath(dir_);
90}
91
92void FlatSparseStreamerTest::TearDown() {
93 zvec::test_util::RemoveTestPath(dir_);

Callers

nothing calls this directly

Calls 4

ParamsFunction · 0.85
RemoveTestPathFunction · 0.85
resetMethod · 0.45
set_metricMethod · 0.45

Tested by

no test coverage detected