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

Method SetUp

tests/db/sqlengine/fts_parser_test.cc:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27class FtsParserTest : public ::testing::Test {
28 protected:
29 void SetUp() override {
30 // Standard tokenizer + lowercase filter. These parser tests cover
31 // punctuation that standard still treats as delimiters, while CJK tests
32 // exercise the per-character tokens standard produces for ideographs.
33 FtsIndexParams params;
34 params.tokenizer_name = "standard";
35 params.filters = {"lowercase"};
36 pipeline_ = TokenizerFactory::create(params).value();
37 ASSERT_NE(pipeline_, nullptr);
38 }
39
40 FtsAstNodePtr parse(const std::string &query) {
41 return parser_.parse(query, pipeline_);

Callers

nothing calls this directly

Calls 2

createFunction · 0.50
valueMethod · 0.45

Tested by

no test coverage detected