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

Method SetUp

tests/core/algorithm/flat/flat_streamer_buffer_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::test_util::RemoveTestPath(dir_);
42}
43
44void FlatStreamerTest::TearDown() {
45 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