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

Method SetUp

tests/core/algorithm/flat_sparse/flat_sparse_streamer_test.cc:198–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197
198void FlatSparseStreamerTest::SetUp() {
199 LoggerBroker::SetLevel(Logger::LEVEL_WARN);
200
201 index_meta_ptr_.reset(new IndexMeta(IndexMeta::MetaType::MT_SPARSE,
202 IndexMeta::DataType::DT_FP32));
203 index_meta_ptr_->set_metric("InnerProductSparse", 0, Params());
204
205 zvec::test_util::RemoveTestPath(dir_);
206}
207
208void FlatSparseStreamerTest::TearDown() {
209 zvec::test_util::RemoveTestPath(dir_);

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected