| 34 | class ProbeOperatorStateTest : public testing::Test {}; |
| 35 | |
| 36 | TEST_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 |
nothing calls this directly
no test coverage detected