| 21 | namespace embedx { |
| 22 | |
| 23 | class 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 | |
| 40 | TEST_F(CacheNodeBuilderTest, Build) { |
| 41 | cache_node_builder_ = CacheNodeBuilder::Create(graph_.get(), 0, -1.0, 2); |
nothing calls this directly
no outgoing calls
no test coverage detected