| 28 | }; |
| 29 | |
| 30 | TEST_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 | |
| 39 | TEST_F(CacheStorageTest, FindNodeFeature) { |
| 40 | auto* node_feat_map = cache_storage_->node_feat_map(); |
nothing calls this directly
no test coverage detected