MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST_F

Function TEST_F

tensorflow/core/distributed_runtime/session_mgr_test.cc:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63};
64
65TEST_F(SessionMgrTest, CreateSessionSimple) {
66 ServerDef server_def;
67 server_def.set_job_name("worker");
68 server_def.set_task_index(3);
69
70 string session_handle = "test_session_handle";
71 TF_EXPECT_OK(mgr_.CreateSession(session_handle, server_def, true));
72 std::shared_ptr<WorkerSession> session;
73 TF_EXPECT_OK(mgr_.WorkerSessionForSession(session_handle, &session));
74 EXPECT_NE(nullptr, session) << "Session for " << session_handle << "was null";
75 EXPECT_NE(mgr_.LegacySession(), session);
76 TF_EXPECT_OK(mgr_.DeleteSession(session_handle));
77}
78
79TEST_F(SessionMgrTest, CreateSessionClusterDefWorkerName) {
80 ServerDef server_def;

Callers

nothing calls this directly

Calls 15

LookupDeviceMethod · 0.80
nameMethod · 0.65
StrContainsFunction · 0.50
CreateSessionMethod · 0.45
LegacySessionMethod · 0.45
DeleteSessionMethod · 0.45
set_nameMethod · 0.45
insertMethod · 0.45
AddMethod · 0.45
remote_device_mgrMethod · 0.45
IsLocalMethod · 0.45

Tested by

no test coverage detected