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

Function TEST_F

tests/core/algorithm/flat/flat_builder_test.cc:88–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88TEST_F(FlatBuilderTest, TestInitSuccess) {
89 IndexBuilder::Pointer builder = IndexFactory::CreateBuilder("FlatBuilder");
90 ASSERT_NE(builder, nullptr);
91 Params params;
92 ASSERT_EQ(0, builder->init(meta_, params));
93}
94
95TEST_F(FlatBuilderTest, TestInitFailedWithInvalidMeasure) {
96 IndexBuilder::Pointer builder = IndexFactory::CreateBuilder("FlatBuilder");

Callers

nothing calls this directly

Calls 15

ParamsFunction · 0.85
build_processFunction · 0.85
BuildQuantizedIndexFunction · 0.85
LoadQuantizedIndexFunction · 0.85
RemoveTestFilesFunction · 0.85
RandomDataFunction · 0.85
IndexQueryMetaClass · 0.85
set_major_orderMethod · 0.80
threshold_setMethod · 0.80
raw_thresholdMethod · 0.80
update_index_metricMethod · 0.80

Tested by

no test coverage detected