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

Function TEST_F

src/graph/cache/cache_storage_test.cc:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28};
29
30TEST_F(CacheStorageTest, FindContext) {
31 auto* context_map = cache_storage_->context_map();
32 vec_pair_t context = {{1, 1.0}, {2, 1.0}, {3, 1.0}, {4, 1.0}, {5, 1.0}};
33 context_map->emplace(100, context);
34
35 EXPECT_EQ(cache_storage_->FindContext(101), nullptr);
36 EXPECT_EQ(cache_storage_->FindContext(100)->size(), 5u);
37}
38
39TEST_F(CacheStorageTest, FindNodeFeature) {
40 auto* node_feat_map = cache_storage_->node_feat_map();

Callers

nothing calls this directly

Calls 7

context_mapMethod · 0.80
emplaceMethod · 0.80
node_feat_mapMethod · 0.80
feat_mapMethod · 0.80
FindFeatureMethod · 0.80
FindContextMethod · 0.45
FindNodeFeatureMethod · 0.45

Tested by

no test coverage detected