MCPcopy Create free account
hub / github.com/Tencent/embedx / CacheNodeBuilderTest

Class CacheNodeBuilderTest

src/graph/cache/cache_node_builder_test.cc:23–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace embedx {
22
23class CacheNodeBuilderTest : public ::testing::Test {
24 protected:
25 std::unique_ptr<InMemoryGraph> graph_;
26 std::unique_ptr<CacheNodeBuilder> cache_node_builder_;
27 GraphConfig config_;
28
29 protected:
30 const std::string CONTEXT = "testdata/context";
31
32 protected:
33 void SetUp() override {
34 config_.set_node_graph(CONTEXT);
35 graph_ = InMemoryGraph::Create(config_);
36 DXCHECK(graph_ != nullptr);
37 }
38};
39
40TEST_F(CacheNodeBuilderTest, Build) {
41 cache_node_builder_ = CacheNodeBuilder::Create(graph_.get(), 0, -1.0, 2);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected