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

Method SetUp

tests/core/algorithm/flat/flat_streamer_buffer_time_test.cc:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34std::shared_ptr<IndexMeta> FlatStreamerTest::index_meta_ptr_;
35
36void FlatStreamerTest::SetUp() {
37 index_meta_ptr_.reset(new (std::nothrow)
38 IndexMeta(IndexMeta::DataType::DT_FP32, dim));
39 index_meta_ptr_->set_metric("SquaredEuclidean", 0, Params());
40
41 zvec::ailego::FileHelper::RemovePath(dir_.c_str());
42}
43
44void FlatStreamerTest::TearDown() {
45 zvec::ailego::FileHelper::RemovePath(dir_.c_str());

Callers

nothing calls this directly

Calls 5

ParamsFunction · 0.85
RemovePathFunction · 0.85
c_strMethod · 0.80
resetMethod · 0.45
set_metricMethod · 0.45

Tested by

no test coverage detected