| 227 | }; |
| 228 | |
| 229 | TEST_F(ModelSessionMgrTest, CreateModelSessionReturnStatusOK) { |
| 230 | MetaGraphDef test_graph_def; |
| 231 | SessionOptions sess_options; |
| 232 | RunOptions run_options; |
| 233 | TestableModelSessionMgr mgr(test_graph_def, &sess_options, &run_options); |
| 234 | |
| 235 | Version version; |
| 236 | ModelConfig config = CreateValidModelConfig(); |
| 237 | FakeFeatureStoreMgr feature_store(&config); |
| 238 | EXPECT_TRUE(mgr.CreateModelSession(version, config.checkpoint_dir.c_str(), |
| 239 | &feature_store, false, false, &config, "graph_signature").ok()); |
| 240 | } |
| 241 | |
| 242 | TEST_F(ModelSessionMgrTest, CreateModelSessionWhenPrevServingDone) { |
| 243 | MetaGraphDef test_graph_def; |
nothing calls this directly
no test coverage detected