MCPcopy Create free account
hub / github.com/bytedance/bolt / TEST_F

Function TEST_F

bolt/exec/tests/ProbeOperatorStateTest.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34class ProbeOperatorStateTest : public testing::Test {};
35
36TEST_F(ProbeOperatorStateTest, basic) {
37 ASSERT_EQ(
38 probeOperatorStateName(ProbeOperatorState::kWaitForBuild),
39 "WAIT_FOR_BUILD");
40 ASSERT_EQ(probeOperatorStateName(ProbeOperatorState::kRunning), "RUNNING");
41 ASSERT_EQ(
42 probeOperatorStateName(ProbeOperatorState::kWaitForPeers),
43 "WAIT_FOR_PEERS");
44 ASSERT_EQ(probeOperatorStateName(ProbeOperatorState::kFinish), "FINISH");
45 ASSERT_EQ(
46 probeOperatorStateName(static_cast<ProbeOperatorState>(-1)),
47 "UNKNOWN: -1");
48}
49
50} // namespace bytedance::bolt::exec::test

Callers

nothing calls this directly

Calls 1

probeOperatorStateNameFunction · 0.85

Tested by

no test coverage detected